Dialog help
#1

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
Reply
#2

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)