05.07.2013, 13:52
How can I set a checkpoint for everyone instead of just one player?
SetCheckpointForAll(...)
{
for(new i=0; i<MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i)) SetPlayerCheckpoint(...);
}
}
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);
}
}
}
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);
}
}
}