05.11.2011, 12:01
Код:
if(listitem == 0) { if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, -1, "You have to be in a vehicle!"); SetPlayerRaceCheckpoint(playerid, 0, -1795.0421, 1103.3732, 45.0752, -1930.9707, 1076.5671, 50.9935, 100); Sfrace[playerid] = 1; // This will change the variable, so we can use it later on with OnPlayerEnterCheckpoint SetPlayerPos(playerid,-1715.7688,1103.5144,45.2969); SendClientMessage(playerid, 0xFFFFFFFF, "You Start The San Ferrio Street Race Challange. Please follow the checkpoints"); Sfracetimer = SetTimer("TimedCountdown", 1000, true); return 1; }