[Pomoc] Zarada od poslova

Započeo kristiankico
10. Mar. 2012. Zaključano
1,466
pregleda
16
postova
kristiankico
4
Shot Caller
10. Mar. 2012.
Skripta koju koristim: CLRP
Detaljan opis problema: Zanima me kako podesiti zaradu poslova,znaci koliko dobit bonusa i koliko dobit za rutu/cp
Dio skripte: neznam sta tocno,stavit cu ako bude potrebno nest
Neke slike/video za lakse dobivanje pomoci(neobavezno): stavit cu ako bude potrebno
kristiankico
4
Shot Caller
11. Mar. 2012.
Oprostite na DP,ali mi je post presao na drugu stranu a treba mi pomoc...  😢
Blaeks_Biofor
5
Forum Don
11. Mar. 2012.
Jel ti hoces da povecas samo bonuse od rada, ili ceo honorar?
kristiankico
4
Shot Caller
11. Mar. 2012.
i bonus i cjeli rad..neki poslovi dobivaju na svakom CP (to ocu promjenit) a neki kad se zavrsi ruta (npr. vozac busa) dobije svotu i bonus (i to hocu promjenit)
kristiankico
4
Shot Caller
11. Mar. 2012.
moze li mi itko pomoci??  ☹️
Blaeks_Biofor
5
Forum Don
11. Mar. 2012.
Daj mi onda delove skritpe isplate poslova( Jednostavnije znaci😄aj dao skripte kada ga isplacuje)
kristiankico
4
Shot Caller
11. Mar. 2012.
uspio sam negdje promjenit..ali negdje mi ne isplacuje,npr
 if(DrugFarmerVar == 1)
{
if(IsPlayerInAnyVehicle(playerid))
{
    new carid = GetPlayerVehicleID(playerid);
    new cash=(random(250-100)+100);
    if(IsADrugHarvest(carid))
    {
        switch(DrugFarmerPickup)
        {
            case 0:
            {
                        SetPlayerCheckpoint(playerid, -181.4144,167.2931,7.8413, 5.0);
                        if(JustStarted != 0)
                        {
                        JustStarted = 0;
}
            }
            case 1:
            {
                        SetPlayerCheckpoint(playerid, -184.1222,-66.2325,3.1172, 5.0);
                        if(JustStarted != 0)
                        {
                        JustStarted = 0;
}
            }
            case 2:
            {
                        SetPlayerCheckpoint(playerid, -39.6705,-102.2681,3.1172, 5.0);
                        if(JustStarted != 0)
                        {
                        JustStarted = 0;
}
            }
            case 3:
            {
                        SetPlayerCheckpoint(playerid, 35.3907,-74.2866,0.9706, 5.0);
                        if(JustStarted != 0)
                        {
                        JustStarted = 0;
}
            }
            case 4:
            {
                        SetPlayerCheckpoint(playerid, 58.6579,-3.7121,1.6909, 5.0);
                        if(JustStarted != 0)
                        {
                        JustStarted = 0;
}
            }
            case 5:
            {
                        SetPlayerCheckpoint(playerid, 19.7974,43.5431,3.1172, 5.0);
                        if(JustStarted != 0)
                        {
                        JustStarted = 0;
}
            }
            case 6:
            {
                        SetPlayerCheckpoint(playerid, -34.1614,73.9170,3.1096, 5.0);
                        if(JustStarted != 0)
                        {
                        JustStarted = 0;
}
            }
            case 7:
            {//drop-off
                if(JustStarted != 1)
                {
                PlayerInfo += cash * 5;
                drugsys++;
                format(string, sizeof(string), "~w~Dodato na vas racun~n~~b~$%d",cash);
            GameTextForPlayer(playerid, string, 5000, 1);
                        SaveDrugSystem();
}
else
{
    JustStarted = 0;
}
                        SetPlayerCheckpoint(playerid, 30.2059,20.1222,3.1172, 5.0);
            }
            case 8:
            {
                        SetPlayerCheckpoint(playerid, -21.3052,-60.9220,3.1172, 5.0);
                        if(JustStarted != 0)
                        {
                        JustStarted = 0;
}
            }
            case 9:
            {
                        SetPlayerCheckpoint(playerid, -191.6069,-70.8331,3.1172, 5.0);
                        if(JustStarted != 0)
                        {
                        JustStarted = 0;
}
            }
            case 10:
            {
                        SetPlayerCheckpoint(playerid, -253.8518,-3.7909,2.5041, 5.0);
                        if(JustStarted != 0)
                        {
                        JustStarted = 0;
}
            }
            case 11:
            {
                        SetPlayerCheckpoint(playerid, -178.0497,128.4783,3.8665, 5.0);
                        if(JustStarted != 0)
                        {
                        JustStarted = 0;
}
            }
            case 12:
            {
                        SetPlayerCheckpoint(playerid, -110.8844,143.1536,3.1144, 5.0);
                        if(JustStarted != 0)
                        {
                        JustStarted = 0;
}
            }
            case 13:
            {
                        SetPlayerCheckpoint(playerid, -34.1614,73.9170,3.1096, 5.0);
                        if(JustStarted != 0)
                        {
                        JustStarted = 0;
}
            }
            case 14:
            {//drop-off
                if(JustStarted != 1)
                {
                PlayerInfo += cash * 5;
                drugsys++;
                format(string, sizeof(string), "~w~Dodato na vas racun~n~~b~$%d",cash);
            GameTextForPlayer(playerid, string, 5000, 1);
            SaveDrugSystem();
}
else
{
    JustStarted = 0;
}
                        SetPlayerCheckpoint(playerid, -164.3909,28.9677,3.1172, 5.0);
            }
            case 15:
            {
                        SetPlayerCheckpoint(playerid, -213.1695,-26.4404,3.1172, 5.0);
                        if(JustStarted != 0)
                        {
                        JustStarted = 0;
}
            }
            case 16:
            {
                        SetPlayerCheckpoint(playerid, -11.7208,-10.7312,3.1172, 5.0);
                        if(JustStarted != 0)
                        {
                        JustStarted = 0;
}
            }
            case 17:
            {
                        SetPlayerCheckpoint(playerid, 11.4609,-90.3436,2.0164, 5.0);
                        if(JustStarted != 0)
                        {
                        JustStarted = 0;
}
            }
            case 18:
            {
                        SetPlayerCheckpoint(playerid, 63.1697,-22.5562,1.2136, 5.0);
                        if(JustStarted != 0)
                        {
                        JustStarted = 0;
}
            }
            case 19:
            {
                        SetPlayerCheckpoint(playerid, 23.2130,30.9418,3.1172, 5.0);
                        if(JustStarted != 0)
                        {
                        JustStarted = 0;
}
            }
            case 20:
            {
                        SetPlayerCheckpoint(playerid, -134.6788,151.1453,3.9566, 5.0);
                        if(JustStarted != 0)
                        {
                        JustStarted = 0;
}
            }
            case 21:
            {
                        SetPlayerCheckpoint(playerid, -34.1614,73.9170,3.1096, 5.0);
                        if(JustStarted != 0)
                        {
                        JustStarted = 0;
}
            }
            case 22:
            {//drop-off
                if(JustStarted != 1)
                {
                PlayerInfo += cash * 5;
                drugsys++;
                format(string, sizeof(string), "~w~Dodato na vas racun~n~~b~$%d",cash);
            GameTextForPlayer(playerid, string, 5000, 1);
            SaveDrugSystem();
}
else
{
    JustStarted = 0;
}
                        SetPlayerCheckpoint(playerid, 45.6651,35.6647,2.1518, 5.0);
            }
            case 23:
            {
                        SetPlayerCheckpoint(playerid, 65.9438,-13.9811,1.3468, 5.0);
                        if(JustStarted != 0)
                        {
                        JustStarted = 0;
}
            }
            case 24:
            {
                        SetPlayerCheckpoint(playerid, 17.1980,-86.7067,1.7758, 5.0);
                        if(JustStarted != 0)
                        {
                        JustStarted = 0;
}
            }
            case 25:
            {
                        SetPlayerCheckpoint(playerid, -7.0889,-19.7445,3.1172, 5.0);
                        if(JustStarted != 0)
                        {
                        JustStarted = 0;
}
            }
            case 26:
            {
                        SetPlayerCheckpoint(playerid, -185.1862,155.1479,6.5185, 5.0);
                        if(JustStarted != 0)
                        {
                        JustStarted = 0;
}
            }
            case 27:
            {
                        SetPlayerCheckpoint(playerid, -184.7949,-57.7402,3.1172, 5.0);
                        if(JustStarted != 0)
                        {
                        JustStarted = 0;
}
            }
            case 28:
            {
                        SetPlayerCheckpoint(playerid, -263.0331,-45.5427,3.1172, 5.0);
                        if(JustStarted != 0)
                        {
                        JustStarted = 0;
}
            }
            case 29:
            {
                        SetPlayerCheckpoint(playerid, -34.1614,73.9170,3.1096, 5.0);
                        if(JustStarted != 0)
                        {
                        JustStarted = 0;
}
            }
            case 30:
            {//drop-off
                if(JustStarted != 1)
                {
                PlayerInfo += cash * 5;
                drugsys++;
                format(string, sizeof(string), "~w~Dodato na vas racun~n~~b~$%d",cash);
            GameTextForPlayer(playerid, string, 5000, 1);
            SaveDrugSystem();
}
else
{
    JustStarted = 0;
}
                        SetPlayerCheckpoint(playerid, -255.7015,-3.0833,2.4276, 5.0);
            }
            case 31:
            {
                        SetPlayerCheckpoint(playerid, -171.7835,-59.3110,3.1172, 5.0);
                        if(JustStarted != 0)
                        {
                        JustStarted = 0;
}
            }
            case 32:
            {
                        SetPlayerCheckpoint(playerid, -153.4347,143.9473,4.1833, 5.0);
                        if(JustStarted != 0)
                        {
                        JustStarted = 0;
}
            }
            case 33:
            {
                        SetPlayerCheckpoint(playerid, 49.4775,24.9682,1.8078, 5.0);
                        if(JustStarted != 0)
                        {
                        JustStarted = 0;
}
            }
            case 34:
            {
                        SetPlayerCheckpoint(playerid, -9.5707,-36.4109,3.1172, 5.0);
                        if(JustStarted != 0)
                        {
                        JustStarted = 0;
}
            }
            case 35:
            {
                        SetPlayerCheckpoint(playerid, 35.6805,-95.6367,0.6169, 5.0);
                        if(JustStarted != 0)
                        {
                        JustStarted = 0;
}
            }
            case 36:
            {
                        SetPlayerCheckpoint(playerid, -34.1614,73.9170,3.1096, 5.0);
                        if(JustStarted != 0)
                        {
                        JustStarted = 0;
}
            }
            case 37:
            {//last drop-off
                PlayerInfo += cash * 5;
                drugsys++;
                SaveDrugSystem();
                        DisablePlayerCheckpoint(playerid);
                        TogglePlayerControllable(playerid, 0);
                        GameTextForPlayer(playerid, "~w~Koristite /exit da napustite traktor", 5000, 1);
            }
        }
        DrugFarmerPickup++;
        PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0);
    }
}
return 1;
}
Deleted User
Obrisan korisnik
11. Mar. 2012.
Povecaj brojeve na ovom kodu, pazi na ovom kodu on daje random kolicinu, mnozi i oduzima:
new cash=(random(250-100)+100);
kristiankico
4
Shot Caller
11. Mar. 2012.
Quote from March 11, 2012, 9:47 pm:
Povecaj brojeve na ovom kodu, pazi na ovom kodu on daje random kolicinu, mnozi i oduzima:
new cash=(random(250-100)+100);


nrp. ovako??
new cash=(random(350-50)+100);
Deleted User
Obrisan korisnik
11. Mar. 2012.
Yep, probaj pa javi detalje ... 😉
kristiankico
4
Shot Caller
11. Mar. 2012.
Quote from March 11, 2012, 9:56 pm:
Yep, probaj pa javi detalje ... 😉


Radi sve,lijepo pise svota ali mi ne pridoda na racun..  😢
Deleted User
Obrisan korisnik
11. Mar. 2012.
new cash = 100 + random(50);// 100 + 38 = 138, znaci ovih 50 skripta samo odabere od 0-50 i doda ovoj stotki, 50 je max do kud skripta odabire, ti tu mozes staviti 1000 pa on slucajno odabere 345.
GivePlayerMoney(playerid, cash);

Nadam se da sad razumijes, i da radi

edit
Vidim da imas ovo u kod, PlayerInfo += cash * 5;
To ti znaci da kad dobijes payday da s njim ti dodje placa
kristiankico
4
Shot Caller
11. Mar. 2012.
mos malo objasnit,pocetnik sam,di sta da ubacim.. :S
Deleted User
Obrisan korisnik
11. Mar. 2012.
Samo ubaci ovo
new cash = 100 + random(50);// 100 + 38 = 138, znaci ovih 50 skripta samo odabere od 0-50 i doda ovoj stotki, 50 je max do kud skripta odabire, ti tu mozes staviti 1000 pa on slucajno odabere 345.
GivePlayerMoney(playerid, cash);


I dobit ces odmah, ali makni ovo PlayerInfo += cash * 5; da neces dobivati 2x
kristiankico
4
Shot Caller
11. Mar. 2012.
radi,hvala vam puno.. 😄 Moze LOCK!

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha