SA-MP Forums Archive
Looping OnPlayerRequestClass - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Looping OnPlayerRequestClass (/showthread.php?tid=125062)



Looping OnPlayerRequestClass - cmg4life - 01.02.2010

How can i return a player to OnPlayerRequestClass after he chose his class ?

I have a bool, if it's 0 the player chooses a thing and the bool goes to 1, if it's 1 the player choose something else, the bool stays 1.

Altho' the Screen freezes with those 2 arrows and [Spawn] on screen and if i click spawn, i spawn as one of the classid, altho without any of the edits from bool 1 part.

How can i re-run OnPlayerRequestClass with 2 diffrent things ?


Re: Looping OnPlayerRequestClass - cmg4life - 01.02.2010

i tryed and it doesnt show the other class things... ill keep trying see what i can get.

eDIT: fixed it


Re: Looping OnPlayerRequestClass - Simon - 02.02.2010

FYI you can also return 0 in OnPlayerRequestSpawn, this "returns" the player to OnPlayerRequestClass (stops them spawning and keeps them in class selection).