Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Prova. http://iksserver.forumfree.it/?t=59016323#entry480595701
- #define DIALOG_CONSOLE 101
- #define DIALOG_CAPS 102
- #define DIALOG_HOST 103
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- //console
- if(dialogid == DIALOG_CONSOLE)
- {
- if(response)
- {
- if(listitem == 0)
- {
- ShowPlayerDialog(playerid,DIALOG_CAPS,DIALOG_STYLE_LIST,"Anti-Caps","Attiva\nDisattiva","Ok","Esci");
- }
- if(listitem == 1)
- {
- ShowPlayerDialog(playerid,DIALOG_HOST,DIALOG_STYLE_LIST,"RandomHostName","Attiva\nDisattiva","Ok","Esci");
- }
- }
- }
- //dialogcaps
- if(dialogid == DIALOG_CAPS)
- {
- if(response)
- {
- if(listitem == 0)
- {
- Options[AntiCaps]=1,dini_IntSet("/configurazionegamemode.ini","AntiCaps",1);
- GameTextForAll("~b~Anti-Caps~w~e' stato ~g~attivato.",3000,3);
- }
- if(listitem == 1)
- {
- GameTextForAll("~b~Anti-Caps~w~e' stato ~r~disattivato.",3000,3);
- Options[AntiCaps]=0,dini_IntSet("/configurazionegamemode.ini","AntiCaps",0);
- }
- }
- }
- //dialoghostname
- if(dialogid == DIALOG_HOST)
- {
- if(response)
- {
- if(listitem == 0)
- {
- GameTextForAll("~b~Random HostName~w~e' stato ~g~attivato.",3000,3);
- Options[HostName]=1,dini_IntSet("/configurazionegamemode.ini","RandomName",1);
- }
- if(listitem == 1)
- {
- GameTextForAll("~b~Random HostName~w~e' stato ~r~disattivato.",3000,3);
- ptions[HostName]=0,dini_IntSet("/configurazionegamemode.ini","RandomName",0);
- }
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment