Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // PRVIN DEFINIRAME DIALOG
- #define testing 10000
- // Gi stavame new
- new VLWarning[MAX_PLAYERS];
- new VLADchat[MAX_PLAYERS];
- new VLGMchat[MAX_PLAYERS];
- new VLOWchat[MAX_PLAYERS];
- new VLPMchat[MAX_PLAYERS];
- new VLAdmin[MAX_PLAYERS];
- new VLVlez[MAX_PLAYERS];
- new VLPomos[MAX_PLAYERS];
- new VLReport[MAX_PLAYERS];
- new VLEvent[MAX_PLAYERS];
- // POSLE ova go stavame na OnPlayerDialog
- if(dialogid == testing)
- {
- if(response)
- {
- if(listitem == 0) // Warning Cheat
- {
- if(VLWarning[playerid] == 0)
- {
- VLWarning[playerid] = 1;
- SCM(playerid,-1, "{0493E8}[ONOFF] » {FF0000}Uspesno go uklucivte VL Warning Cheat.");
- }
- else
- {
- VLWarning[playerid] = 0;
- SCM(playerid,-1, "{0493E8}[ONOFF] » {FF0000}Uspesno go isklucivte VL Warning Cheat.");
- }
- }
- else if(listitem == 1) // Pomos
- {
- if(VLPomos[playerid] == 0)
- {
- VLPomos[playerid] = 1;
- SCM(playerid,-1, "{0493E8}[ONOFF] » {FF0000}Uspesno go uklucivte VL Pomos.");
- }
- else
- {
- VLPomos[playerid] = 0;
- SCM(playerid,-1, "{0493E8}[ONOFF] » {FF0000}Uspesno go isklucivte VL Pomos");
- }
- }
- else if(listitem == 2) // VL Report
- {
- if(VLReport[playerid] == 0)
- {
- VLReport[playerid] = 1;
- SCM(playerid,-1, "{0493E8}[ONOFF] » {FF0000}Uspesno go uklucivte VL Report.");
- }
- else
- {
- VLReport[playerid] = 0;
- SCM(playerid,-1, "{0493E8}[ONOFF] » {FF0000}Uspesno go isklucivte VL Report");
- }
- }
- else if(listitem == 3) // VL Event
- {
- if(VLEvent[playerid] == 0)
- {
- VLEvent[playerid] = 1;
- SCM(playerid,-1, "{0493E8}[ONOFF] » {FF0000}Uspesno go uklucivte VL Event.");
- }
- else
- {
- VLEvent[playerid] = 0;
- SCM(playerid,-1, "{0493E8}[ONOFF] » {FF0000}Uspesno go isklucivte VL Event");
- }
- }
- else if(listitem == 4) // VL Vleze na server
- {
- if(VLVlez[playerid] == 0)
- {
- VLVlez[playerid] = 1;
- SCM(playerid,-1, "{0493E8}[ONOFF] » {FF0000}Uspesno go uklucivte Warning za Koj Vleguva na servero");
- }
- else
- {
- VLVlez[playerid] = 0;
- SCM(playerid,-1, "{0493E8}[ONOFF] » {FF0000}Uspesno go isklucivte Warning za Koj Vleguva na servero");
- }
- }
- else if(listitem == 5) // VL /aa Admin/GM Chat
- {
- if(VLAdmin[playerid] == 0)
- {
- VLAdmin[playerid] = 1;
- SCM(playerid,-1, "{0493E8}[ONOFF] » {FF0000}Uspesno go uklucivte Admin/GM Chat /aa");
- }
- else
- {
- VLAdmin[playerid] = 0;
- SCM(playerid,-1, "{0493E8}[ONOFF] » {FF0000}Uspesno go isklucivte Admin/GM Chat /aa");
- }
- }
- else if(listitem == 6) // Admin Chat /a
- {
- if(PlayerInfo[playerid][pAdmin] >= 1)
- {
- if(VLADchat[playerid] == 0)
- {
- VLADchat[playerid] = 1;
- SCM(playerid,-1, "{0493E8}[ONOFF] » {FF0000}Uspesno go uklucivte Admin Chat /a (SAMO ADMIN)");
- }
- else
- {
- VLADchat[playerid] = 0;
- SCM(playerid,-1, "{0493E8}[ONOFF] » {FF0000}Uspesno go isklucivte Admin Chat /a (SAMO ADMIN)");
- }
- }else SCM(playerid, COLOR_GRAD1,"{0493E8}[ONOFF] » {FF0000}Greska{C0C0C0} | Vie ne ste Admin");
- }
- else if(listitem == 7) // GM Chat
- {
- if(PlayerInfo[playerid][pGameMaster] >= 1)
- {
- if(VLGMchat[playerid] == 0)
- {
- VLGMchat[playerid] = 1;
- SCM(playerid,-1, "{0493E8}[ONOFF] » {FF0000}Uspesno go uklucivte GameMaster Chat /g (SAMO GM)");
- }
- else
- {
- VLGMchat[playerid] = 0;
- SCM(playerid,-1, "{0493E8}[ONOFF] » {FF0000}Uspesno go isklucivte GameMaster Chat /g (SAMO GM)");
- }
- }else SCM(playerid, COLOR_GRAD1,"{0493E8}[ONOFF] » {FF0000}Greska{C0C0C0} | Vie ne ste GameMaster");
- }
- else if(listitem == 8) // Private Message /pm
- {
- if(VLPMchat[playerid] == 0)
- {
- VLPMchat[playerid] = 1;
- SCM(playerid,-1, "{0493E8}[ONOFF] » {FF0000}Uspesno go uklucivte Private Message");
- }
- else
- {
- VLPMchat[playerid] = 0;
- SCM(playerid,-1, "{0493E8}[ONOFF] » {FF0000}Uspesno go isklucivte Private Message");
- }
- }
- else if(listitem == 9) // Cel /pm /gpm chat
- {
- if(PlayerInfo[playerid][pAdmin] == 2015)
- {
- if(VLOWchat[playerid] == 0)
- {
- VLOWchat[playerid] = 1;
- SCM(playerid,-1, "{0493E8}[ONOFF] » {FF0000}Uspesno uklucivte da Citate Private Message /pm, /gpm");
- }
- else
- {
- VLOWchat[playerid] = 0;
- SCM(playerid,-1, "{0493E8}[ONOFF] » {FF0000}Uspesno isklucivte da Citate Private Message /pm, /gpm");
- }
- }
- }
- }
- return 1;
- }
- //
- CMD:onoff(playerid, params[])
- {
- if(PlayerInfo[playerid][pGameMaster] >= 1 || PlayerInfo[playerid][pAdmin] >= 1)
- {
- ShowPlayerDialog(playerid, testing, DIALOG_STYLE_LIST, "On/Off", "Warning Cheat\Pomos\Report\Event\nVleze na servero\nAdmin/GM Chat /aa\nAdmin Chat /a (SAMO ADMIN)\nGameMaster Chat /g (SAMO GM)\nPrivate Messages /pm, /gpm\nCitanje na /pm , /gpm (SAMO OWNER)", "On/Off", "Izlezi");
- }
- else
- {
- SendClientMessage(playerid,COLOR_GRAD1,"{0493E8}[ONOFF] » {FF0000}Informacija{C0C0C0} | Nemozete da ja koristete ovaa komanda !");
- }
- return 1;
- }
- //NAPOMENA samo stavate vo SCM toa sto vi izleguva ili tie raboti znaci ako vi e warning cheat tamo akde sto e porakata stavate naprimer
- if(VLWarning == 1)
- {
- pa go stavate ova tuka SCM(playerid, -1, i sto pisue taka
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement