05.07.2013, 15:02
You put that in your Gm and than you use in your code where you need to create checkpoint forall
In your code you put SetCheckpointForAll(pos x, pos y, pos z, size of checkpoint)
Example:
CMD:race(playerid, params[])
{
SetCheckpointForAll(284.34, 1322.32, 472.90, 3.0);
return 1;
}
pawn Код:
SetCheckpointForAll(Float:x, Float:y, Float:z, Float:size)
{
for(new i=0; i<MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
SetPlayerCheckpoint(i , Float:x, Float:y, Float:z, Float:size);
}
}
}
Example:
CMD:race(playerid, params[])
{
SetCheckpointForAll(284.34, 1322.32, 472.90, 3.0);
return 1;
}