10.08.2013, 20:18
Add one new
Under OnplayerConnect put
And make command to start a test
And under public OnPlayerEnterCheckpoint put something like this
And just add your coordinates and whatever you want.
Rep + if i helped you.
Код:
new CP[MAX_PLAYERS];
Код:
CP[playerid] = 0;
Код:
CMD:starttest(playerid, params[]) { if(IsPlayerInAnyVehicle(playerid)) { SendClientMessage(playerid, -1, "You have started driving test"); CP[playerid] = 1; SetPlayerCheckpoint(playerid, X,Y,Z, checkpoint size); } }
Код:
if(CP[playerid]==1) { if(IsPlayerInAnyVehicle(playerid)) { DisablePlayerCheckpoint(playerid); CP[playerid] = 2; SetPlayerCheckpoint(playerid, Next X pos,Next Y pos,Next Z pos, your checkpoint size); } } if(CP[playerid]==2) { if(IsPlayerInAnyVehicle(playerid)) { DisablePlayerCheckpoint(playerid); CP[playerid] = 3; SetPlayerCheckpoint(playerid, Next X pos,Next Y pos,Next Z pos, your checkpoint size); } }
Rep + if i helped you.