Spawn player problems.
#4

Quote:
Originally Posted by Jefff
Посмотреть сообщение
1. Skin id 74 doesn't exists so you must add if(i != 74)
2. Change MapChange =-1; to MapChange = 0; or MapChange -= 1;

=-1;
to
-= 1;
when MapChange - =1, player id 0 goes to WEST LV but player id 1 respawns again in LV Airport instead of WEST LV (which is better than spawning near the escaltors ) but it is still not functionning properly.

I will be trying to find a fix now.

maybe there is something wrong with the loop?


UPDATE: when i use
PHP код:
forward StartedNewRound();
public 
StartedNewRound()                          // The callback we forwarded in the beginning of this tutorial
{
    for(new 
1MAX_PLAYERSi++)
    {        
// this loops everyone in the server also you can use foreach include for this part
        
SpawnPlayer(i);                      // Re Spawns everyone in the server which then gets OnPlayerSpawn Callback called
    
}
    return 
1;

instead of
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
        
SpawnPlayer(i);                      // Re Spawns everyone in the server which then gets OnPlayerSpawn Callback called
    
}
    return 
1;

only ID 1 changes map while ID 0 remains at LV Airport, any solutions?
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: 4 Guest(s)