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=420811)



dialog help - Godzilla8957 - 06.03.2013

i need a little help, how do i make it so when a person spawns they see a dialog as soon as they spawn.

here is the dialog i want them to see..

thanks if you can help
PHP код:
ShowPlayerDialog(playerid,999,DIALOG_STYLE_MSGBOX,"Current Script Version 0.1","ADDED:\n- New Police Department\n- New Mappings By Ryan_Clarke \n- All Houses Have Been Edited \n- All Houses Have An Address Now\n\n CHANGED:\n- /inv is now /pockets \n- /changes is now /updates\n- Sbiz And Bizzes Have Been Deleted\n\nFIXED:\n- Minor Bugs","Close",""); 



Re: dialog help - rangerxxll - 06.03.2013

pawn Код:
public OnPlayerSpawn(playerid)
{
      ShowPlayerDialog(playerid,999,DIALOG_STYLE_MSGBOX,"Current Script Version 0.1","ADDED:\n- New Police Department\n- New Mappings By Ryan_Clarke \n- All Houses Have Been Edited \n- All Houses Have An Address Now\n\n CHANGED:\n- /inv is now /pockets \n- /changes is now /updates\n- Sbiz And Bizzes Have Been Deleted\n\nFIXED:\n- Minor Bugs","Close","");
      return 1;
}



Re: dialog help - Godzilla8957 - 06.03.2013

how do i make it so they only see it 1 time until i update it?


Re: dialog help - rangerxxll - 06.03.2013

You'll want to create a variable. If they spawn, and the variable is 0 then it shows. If the variable turns to 1, then it won't show.