SA-MP Forums Archive
Show dialog only one time. - 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: Show dialog only one time. (/showthread.php?tid=580743)



Show dialog only one time. - aalbero99 - 07.07.2015

I want to create a dialog which shows only the first time a player joins the server. In this dialog the player chooses a class and such. The only problem I have is that I want the dialog to show up only the first time a player joins.
Thank you!


Re: Show dialog only one time. - bigtigerbeee - 08.07.2015

enum players

pFirstPlay

OnplayerConnect : Load pFirstPlay

OnplayerSpawn : Check pFirstPlay
if pFirstplay == 0

Show Dialog to player
set pFirstplay = 1

OnplayerDisconnect : Save pFirstplay


Re : Show dialog only one time. - aalbero99 - 08.07.2015

Thank you! How do I exactly place this on the gm?


Re: Show dialog only one time. - JaydenJason - 08.07.2015

He's just telling you what to do.

We can't do anything without some code? We don't know what saving system you use etc, show some code!