SA-MP Forums Archive
will pay for this to be made - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: will pay for this to be made (/showthread.php?tid=396072)



will pay for this to be made - NinjaChicken - 29.11.2012

i need help, basically i want say 50 street sweepers spawn at one spot and when any play enters them it will say drive around the streets to earn money, then you drive around and every minute the player will get paid $150, only if they were moving if they are stationary they wont get anything please help me


Re: will pay for this to be made - dr.lozer - 29.11.2012

What?!?!? a little explain please


Re: will pay for this to be made - Glad2BeHere - 29.11.2012

pawn Код:
new sweeperjob[50];

//under gamemode init
 sweeperjob[0] = createveh/addstatic/addstatex(vehiclespawninfo);
 //49 later.....
sweeperjob[49] = createveh/addstatic/addstatex(vehiclespawninfo);

//under onplayerentervehicle
if(SweeperRide(vehicleid))
{
new sj;
sj = SetTimerEx("sweepjob", 60000, true, "i", playerid);
}
//under
//onplayerexitvehicle && onplayerdeath
killertimer(sj);

forward sweepjob(playerid);

public sweepjob(playerid)
{

GivePlayerMoney(playerid, 150);
 }
 return 1;
}

stock SweeperRide(vehicleid)
{
    for(new i=0; i<50; i++)
    {
        if(vehicleid == sweeperjob[i]) return 1;
    }
    return 0;
}
Need more detailed help or even other ways of doing give me a message if i havent fall asleep i may help u