Posts: 415
Threads: 145
Joined: Oct 2013
Reputation:
0
Hello guys, please how I can disable/remove class selection menu? I'm working on RP mode and I just want, when player type password to register/login, it'll just spawn him, and he don't need to press "Spawn" button. Thanks for your replies.
Posts: 415
Threads: 145
Joined: Oct 2013
Reputation:
0
Well, and where to put it?
Btw. I am using variable for check if is player logging or he's registering. I want to make if he's logging it will load his positions from .ini. If he's registering, here will be used SetPlayerPos function. I already have scripted these thing what I actually said, but don't know how to make it work with disabling class selection menu. Better said, I don't know to what public I need to put it.
Posts: 512
Threads: 121
Joined: Sep 2013
Код:
new ViewingTextDraws;
public OnPlayerConect(playerid)
{
ViewingTextDraws[playerid] = 1;
}
public OnPlayerRequestSpawn(playerid)
{
if(ViewingTextDraws[playerid] == 1) return 0;
return 1;
}
Posts: 415
Threads: 145
Joined: Oct 2013
Reputation:
0
Mate this didn't work, now is "Spawn" button disabled but I want to skip all this selection.
Posts: 222
Threads: 30
Joined: Jan 2013
Reputation:
0
Dude add SpawnPlayer(playerid);
onDialogResponse, onPlayerCommandPerformed, whatever you use for Log-in
Posts: 415
Threads: 145
Joined: Oct 2013
Reputation:
0
Yeah mate, I solved it, login works with no problem, but in registration why I need to use SetSpawnInfo? Becouse when I used SetPlayerPos, it won't spawn me. But with SetSpawnInfo it works. How I can solve that?