[Include] Disable class selection
#5

Quote:
Originally Posted by Emmet_
View Post
SpawnPlayer() doesn't work if the player is spectating. It bugs or kicks the player.
I know, but TogglePlayerSpectating(playerid, false) will automatically spawns player.
Maybe this variant is better:
PHP Code:
stock CS_SpawnPlayer(playerid)
{
    if (
GetPlayerState(playerid) == PLAYER_STATE_SPECTATING)
    {
        
TogglePlayerSpectating(playeridfalse);
    }
    else
    {
        
SpawnPlayer(playerid);
    }

Reply


Messages In This Thread
Disable class selection - by Emmet_ - 13.05.2015, 10:57
Re: Disable class selection - by Crayder - 13.05.2015, 11:16
Re: Disable class selection - by ZiGGi - 13.05.2015, 12:29
Re: Disable class selection - by Emmet_ - 13.05.2015, 12:32
Re: Disable class selection - by ZiGGi - 13.05.2015, 12:44
Re: Disable class selection - by Gammix - 13.05.2015, 13:40
Re: Disable class selection - by theYiin - 24.05.2015, 11:36
Re: Disable class selection - by FplayerGR - 24.05.2015, 15:24
Re: Disable class selection - by ZiGGi - 24.05.2015, 16:25
Re: Disable class selection - by PT - 24.05.2015, 16:42

Forum Jump:


Users browsing this thread: 2 Guest(s)