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: Dialog. (
/showthread.php?tid=547821)
Dialog. -
HY - 25.11.2014
Hello, I've tried to make a dialog with "Enable/Disable" function.. What I'm talking about?
If a player type a command like: /Christmas.. To him will show a dialog, with 2 lines. First line and second it's disabled:
And if he press on it, will show him Enabled.
Then, if he press will show disabled, then enabled, you get idea..
Someone knows how to make this? +Rep of course.
Re : Dialog. -
Dutheil - 25.11.2014
Like this ?
pawn Код:
// top
new bool:snowStatus;
// when he presses it
snowStatus = !snowStatus;
new string[64];
format(string, sizeof(string), "- Snow Status\t%s", snowStatus ? "({008000}Enabled)" : "({FF0000}Disabled)");
ShowPlayerDialog(playerid, id, DIALOG_STYLE_LIST, caption, string, button1, button2)