SA-MP Forums Archive
Select class via dialog - 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: Select class via dialog (/showthread.php?tid=565563)



Select class via dialog - KomplettMaster - 28.02.2015

hey! i want it so player can choose team via dialog instead of the classic selection.
But if i enter wrong password 2 times it redirects me to class selection, is it possible to keep it at the "normal" place until i login and then redirect to the class selection view?

http://pastebin.com/kM9yzpzL


Re: Select class via dialog - amirab - 28.02.2015

try putting
PHP код:
ShowPlayerDialog(playeridDIALOG_CLASSDIALOG_STYLE_LIST"Choose a class:""Terrorist\nMilitart""Spawn"""); 
in LoadUser_data


Re: Select class via dialog - ATGOggy - 28.02.2015

Make a bool 'bool:logged[MAX_PLAYERS]'

when players logs in correctly, 'logged[playerid]=true'

in OnPlayerRequestClass

if(!logged[playerid]) return 1;


Re: Select class via dialog - KomplettMaster - 28.02.2015

Wont work sorry guys :S
Have seen other servers with it, shouldnt be so hard