Problem with the class selection...
#1

Hello so i started doing a RP script from a scratch. I ran into a problem on registration system. So when the player connects, if he is not register i give him a dialog that asks to put a password, that he wants to be his password. Everything is fine at that point, but when you enter it i get the class selection and the it doesnt work where i put the camera position or the player. So then i did this:

Код:
 public OnPlayerRequestClass(playerid, classid)
{
	SpawnPlayer(playerid);
	return 1;
}
Then the player spawns, and cameras moves where i want them to. But the problem i ran in to is the SPAWN buttons do not dissapear. Does anybody know whats the problem? If you dont understand what i wrote here i can try to explain it, or give you some images.
Reply
#2

If you look inside the grandlarc gamemode, they used TogglePlayerSpectating to get rid of the spawn buttons. Experiment around with that and you will find your answer.
Reply
#3

Thank you.
Reply
#4

Another method is:

Show dialog on player connect, then on register or login use:

pawn Код:
SetSpawnInfo(playerid, ...rest of stuff);
SpawnPlayer(playerid);
Works perfect for me
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)