SA-MP Forums Archive
Dialog help - 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: Dialog help (/showthread.php?tid=368140)



Dialog help - mickos - 12.08.2012

Hi,

I want to skip the OnPlayerRequestClass in my server, that a player will be automatically spawn, and that he make a choice what skin he want. I mean when a player spawns, he will be see a Dialog with 2 choices namely:

CJ and Sweet, When a player click on CJ he will be spawn as CJ, when a player click on Sweet he will be spawn as sweet..

But how can I make that? I have this in my OnPlayer spawn:
PHP код:
ShowPlayerDialog(playeridDIALOG_STYLE_LISTDIALOG_STYLE_MSGBOX"Which role would you like to play as?""~b~CJ\n~r~Sweet""Select"""); 
Anyone that can help me?

Thanks


Re: Dialog help - phillip875 - 12.08.2012

To skip the Request class

pawn Код:
SetSpawnInfo(playerid,team,skin,Float:x,Float:y,Float:z,Float:r,0,0,0,0,0,0);
SpawnPlayer(playerid);
Add that to the function you are using to load their stats.

Alternatively, you couldd put it under OnPlayerRequestClass