Checkpoint for all players
#6

You put that in your Gm and than you use in your code where you need to create checkpoint forall

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);
         }
    }
}
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;
}
Reply


Messages In This Thread
Checkpoint for all players - by arjanforgames - 05.07.2013, 13:52
Re: Checkpoint for all players - by Sasino97 - 05.07.2013, 13:56
Re: Checkpoint for all players - by Guest123 - 05.07.2013, 14:00
Re: Checkpoint for all players - by arjanforgames - 05.07.2013, 14:34
Re: Checkpoint for all players - by Sasino97 - 05.07.2013, 14:58
Re: Checkpoint for all players - by (ETR)Geto244 - 05.07.2013, 15:02
Re: Checkpoint for all players - by arjanforgames - 05.07.2013, 15:12

Forum Jump:


Users browsing this thread: 1 Guest(s)