27.07.2015, 19:11
Hello!
You should use this version:
In your version you would spawn all players (npcs).
Quote:
maybe there is something wrong with the loop? |
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;
}