28.08.2011, 08:54
How do I set an action for all players?
I want to make a race and use SetPlayerRaceCheckpoint, but for all players.
I want to make a race and use SetPlayerRaceCheckpoint, but for all players.
for( new i = 0; i < MAX_PLAYERS; i++ ) // Loop through all players
{
if( !IsPlayerConnected( i ) ) continue; // They're not connected, goto the next player slot (iteration)
SetPlayerRaceCheckpoint( i, ... ); // Set the checkpoint
}