Spawn player problems.
#5

Hello!

Quote:

maybe there is something wrong with the loop?

You should use this version:
PHP код:
forward StartedNewRound();
public 
StartedNewRound()                          // The callback we forwarded in the beginning of this tutorial
{
    for(new 
0MAX_PLAYERSi++)
    {        
// 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).
Reply


Messages In This Thread
Spawn player problems. - by Lofti - 26.07.2015, 23:46
Re: Spawn player problems. - by TwinkiDaBoss - 27.07.2015, 00:25
Re: Spawn player problems. - by Jefff - 27.07.2015, 01:12
Re: Spawn player problems. - by Lofti - 27.07.2015, 19:06
AW: Spawn player problems. - by Mencent - 27.07.2015, 19:11
Re: AW: Spawn player problems. - by Lofti - 27.07.2015, 19:18
AW: Spawn player problems. - by Mencent - 27.07.2015, 19:21

Forum Jump:


Users browsing this thread: 1 Guest(s)