I am attempting to skip class selection, but it doesn't work
#1

PHP код:
public OnPlayerRequestClass(playeridclassid)
{
    print(
"Request class!");
    
SetPlayerPos(playerid1958.37831343.157215.3746);
    
SetPlayerCameraPos(playerid1958.37831343.157215.3746);
    
SetPlayerCameraLookAt(playerid1958.37831343.157215.3746);
    return 
1;
}
forward InstantSpawn(playerid);
public 
InstantSpawn(playerid)
{
    
TogglePlayerSpectating(playerid0);
    
TogglePlayerControllable(playerid1);
    
SpawnPlayer(playerid);
}
public 
OnHashCheck(playerid)
{
    
//...... your typical password compare stuff
    
if(!match)
        
KickPlayer(playerid"Wrong password!");
    
SetTimerEx("InstantSpawn"10"i"playerid);
    return 
1;

I would love to get some help, I don't know what I am doing wrong (And before you ask, I did verify that OnHashCheck is being called);
Reply


Messages In This Thread
I am attempting to skip class selection, but it doesn't work - by EtayJ - 19.10.2017, 12:06
Re: I am attempting to skip class selection, but it doesn't work - by kAn3 - 19.10.2017, 12:42
Re: I am attempting to skip class selection, but it doesn't work - by EtayJ - 19.10.2017, 20:00
Re: I am attempting to skip class selection, but it doesn't work - by Lucases - 19.10.2017, 20:07
Re: I am attempting to skip class selection, but it doesn't work - by EtayJ - 19.10.2017, 20:53

Forum Jump:


Users browsing this thread: 1 Guest(s)