24.04.2015, 13:10
So you can use like this :
And define some codes for each checkpoint like this:
It would work.
Any questions?
PHP код:
if(IsTruckerCar(vehicleid))
{
CP[playerid] = CHECKPOINT_JOB1;
new rand = random(sizeof(Kidnap));
Checkpoint[playerid] = rand;
SetPlayerCheckpoint(playerid,Kidnap[rand][0],Kidnap[rand][0],Kidnap[rand][0],4);
}
PHP код:
if(CP[playerid] == CHECKPOINT_JOB1)
{
GivePlayerMoney(playerid,2000);
PlayerInfo[playerid][pMoney] += 2000;
CP[playerid] = CHECKPOINT_NONE;
DisablePlayerCheckpoint(playerid);
return 1;
}
Any questions?