Spawn player problems.
#6

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 
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).
Tested it with 2 players;
ID 0 goes to WEST LV but ID 1 respawns again at LV Airport ;/
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)