Quote:
Originally Posted by Mencent
Hello!
You should use this version:
PHP код:
forward StartedNewRound();
public StartedNewRound() // The callback we forwarded in the beginning of this tutorial
{
for(new i = 0; i < MAX_PLAYERS; i++)
{ // this loops everyone in the server also you can use foreach include for this part
if(!IsPlayerConnected(i) || IsPlayerNPC(i))continue;
SpawnPlayer(i); // Re Spawns everyone in the server which then gets OnPlayerSpawn Callback called
}
return 1;
}
In your version you would spawn all players (npcs).
|
Tested it with 2 players;
ID 0 goes to WEST LV but ID 1 respawns again at LV Airport ;/