13.07.2016, 00:40
Thanks but after clicking the Spawn button it spawned me together with Register Dialog. I only want the dialog in the OnPlayerRequestSpawn.
I want to to be like these:
-If Player pressed the Spawn button then it will show the Register Dialog (without spawning yet)
-Then after Player successfully registered the dialog will disappear then now Player can press the spawn button
I want to to be like these:
-If Player pressed the Spawn button then it will show the Register Dialog (without spawning yet)
-Then after Player successfully registered the dialog will disappear then now Player can press the spawn button
Code:
public OnPlayerRequestSpawn(playerid) { classSelection[playerid] = 0; ShowRegisterScreen(playerid); <<-- Register Dialog return 1; }