10.03.2012, 21:35
Код:
public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/mission", cmdtext, true, 10) == 0) { if(GetPlayerVehicleID == YOUR vehID here!) SetPlayerCheckpoint(playerid, COORDINATES here, 3.0); return 1; } return 0; }
Код:
public OnPlayerEnterCheckpoint(playerid) { GivePlayerMoney(playerid, 1000); DisablePlayerCheckpoint(playerid); return 1; }
tought im on phone so if there is a mistake im sorry
EDIT:
If you need to create more than one checkpoints, you can use this instead:
Код:
public OnPlayerEnterCheckpoint(playerid) { GivePlayerMoney(playerid, 1000); DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, NEW coordinates, 3.0); return 1; }
https://sampwiki.blast.hk/wiki/SetPlayerRaceCheckpoint