Problem with the class selection... - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Problem with the class selection... (
/showthread.php?tid=315176)
Problem with the class selection... -
Type-R - 02.02.2012
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.
Re: Problem with the class selection... -
[HiC]TheKiller - 02.02.2012
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.
Re: Problem with the class selection... -
Type-R - 02.02.2012
Thank you.
Re: Problem with the class selection... -
Abreezy - 02.02.2012
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