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

Код HTML:
public OnPlayerConnect(playerid)
{
    SetSpawnInfo(playerid, ANYCORDS, ANYCORDS, ANYCORDS, ANYANGLE, -1, 0, -1, 0, -1, 0);
    SpawnPlayer(playerid);
    SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746); 
    SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746); 
    SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746); 
    return 1; 
}
I just made the player spawn under OnPlayerConnect, so OnPlayerRequestClass won't be called.
This will prevent "Spawn" button show.
Replace all "ANYCORDS" with any cords, anyway you'll set the player pos after the spawn with this code.
Remember to change player pos and to set the camera behind the player after login/register dialog.
I hope I helped you.
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)