will pay for this to be made
#1

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
Reply
#2

What?!?!? a little explain please
Reply
#3

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)