[Include] Disable class selection
#4

Quote:
Originally Posted by ZiGGi
View Post
Why you call SpawnPlayer(playerid) after TogglePlayerSpectating(playerid, false)? And you did not consider F4 feature.
SpawnPlayer() doesn't work if the player is spectating. It bugs or kicks the player.

No way to detect F4, but for now I would just do something like:

pawn Code:
public OnPlayerFullyConnected(playerid)
{
    if (IsPlayerLoggedIn(playerid))
    {
        SpawnPlayer(playerid);
    }
    else
    {
        // Show register/login dialog, set camera, etc
    }
}
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: 4 Guest(s)