Dialog.
#1

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

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)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)