[Ajuda] Bug nativo
#6

Quote:
Originally Posted by RodrigoMSR
Посмотреть сообщение
Isso ocorre pelo uso da funзгo SpawnPlayer apуs o jogador ser morto, usando a funзгo abaixo vocк nгo terб mais esses problemas:
PHP код:
forward Spawn(playerid);
public 
Spawn(playerid)
{
    if(
GetPlayerState(playerid) == PLAYER_STATE_SPECTATING)
    {
        
TogglePlayerSpectating(playeridfalse);
        
SetSpawnInfo(playeridNO_TEAMGetPlayerSkin(playerid), 0.00.00.00.0000000);
    }
    else
    {
        if(
GetPlayerState(playerid) != PLAYER_STATE_WASTED)
        {
            
Eject(playerid);
            
SpawnPlayer(playerid);
        }
    }
    return 
1;
}
forward Eject(playerid);
public 
Eject(playerid)
{
    if(!
IsPlayerInAnyVehicle(playerid)) return 0;
    new 
Float:xFloat:yFloat:z;
    
GetPlayerPos(playeridxyz);
    
SetPlayerPos(playeridxyz+3);
    return 
1;

Substitua SpawnPlayer por Spawn nos seus cуdigos.
Tem o SetPlayerSpawn , muda tambem por spawn?
Reply


Messages In This Thread
Bug nativo - by BrunoLuiz - 20.10.2017, 16:27
Re: Bug nativo - by JoaoBorges - 20.10.2017, 16:56
Re: Bug nativo - by iTzMatheus - 20.10.2017, 17:27
Re: Bug nativo - by BrunoLuiz - 20.10.2017, 18:33
Re: Bug nativo - by RodrigoMSR - 20.10.2017, 22:00
Re: Bug nativo - by BrunoLuiz - 21.10.2017, 00:10
Re: Bug nativo - by RodrigoMSR - 21.10.2017, 00:12
Re: Bug nativo - by BrunoLuiz - 21.10.2017, 02:09
Re: Bug nativo - by BrunoLuiz - 21.10.2017, 03:15

Forum Jump:


Users browsing this thread: 5 Guest(s)