Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //-------------------------------------//
- #define COLOR_LIGHTCORAL 0xF08080FF
- //-------------------------------------//
- #define COLOR_LIGHTCYAN 0xE0FFFFFF
- //-------------------------------------//
- #define COLOR_LIGHTG 0xFAFAD2FF
- //-------------------------------------//
- #define COLOR_LIGHTGRAY 0xD3D3D3FF
- //-------------------------------------//
- #define COLOR_LIGHTGREEN 0x41FF00FF
- //-------------------------------------//
- #define COLOR_LIGHTPINK 0xFFB6C1FF
- //-------------------------------------//
- #define COLOR_LIGHTSALMON 0xFFA07AFF
- //-------------------------------------//
- #define COLOR_LIGHTSKYBLUE 0x87CEFAFF
- //------------------------------------//
- #define Grey 0xC0C0C0FF
- //-------------------------------------//
- #define COLOR_LIGHTSLATEGRAY 0x778899FF
- //-------------------------------------//
- #define COLOR_LIGHTSTEELBLUE 0xB0C4DEFF
- //-------------------------------------//
- #define COLOR_PINK 0xFF60FFFF
- //-------------------------------------//
- #define COLOR_LIGHTYELLOW 0xFFFFE0FF
- //------=Qther=-----------//
- new PClick[MAX_PLAYERS];
- new Jail[MAX_PLAYERS];
- new Freeze[MAX_PLAYERS];
- new Muted[MAX_PLAYERS];
- new SPEC[MAX_PLAYERS];
- //======================================================
- #if defined FILTERSCRIPT
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" ");
- print("--------------------------------------\n");
- return 1;
- }
- public OnFilterScriptExit()
- {
- print("\n--------------------------------------");
- print("");
- print("--------------------------------------\n");
- return 1;
- }
- #else
- #endif
- public OnPlayerText(playerid, text[])
- {
- {
- if(Muted[playerid])
- {
- SendClientMessage(playerid,0xFF8080FF,"You are muted!");
- return 0;
- }
- }
- return 1;
- }
- public OnPlayerClickPlayer(playerid, clickedplayerid, source)
- {
- if(IsPlayerAdmin(playerid))
- {
- new DialogText[1024];
- strcat(DialogText, "{FF0000}Kick\n{FF0000}Ban\n{EB1A6D}Heal\n{EB1A6D}Armour\n{EB1AD9}Kill\n{EB1AD9}Give money\n{5F1AEB}Teleport to you\n{5F1AEB}Teleport to player\n{00BBFA}Explode\n{00BBFA}Burn\n{00FACC}Spawn\n{00FACC}Slap\n{00FA6C}Jail\n{00FA6C}Unjail\n{51BD09}Give Score\n{51BD09}Eject\n{59F511}Give weapon\n{59F511}Freeze\n{59F511}Unfreeze\n{CCCC14}Disarm");
- strcat(DialogText, "\n{FF8A05}Setskin\n{FF8A05}Set color\n{995139}Set Health\n{995139}Set Armour\n{9E9291}Force\n{6600FF}Give Jetpack\n{6600FF}Heal And Armour\n{1BE0A8}Mute\n{1BE0A8}Unmute\n{F50766}Set Score\n{F50766}Set Money\n{046616}Spec\n{046616}Spec Off");
- ShowPlayerDialog(playerid, 9562, DIALOG_STYLE_LIST, "Select admin action (By phantomcraft)", DialogText,"Action","Quit");
- PClick[playerid] = clickedplayerid;
- }
- return 1;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(response)// Checking if they pressed the first button, if so continue:
- {
- switch(dialogid)//if your using only one dialog this isn't needed but you never know.
- {
- case 9562:// Our dialog
- {
- switch(listitem)// Checking which listitem was chosen
- {
- //==============================================================Start OF ACTION=====================================================//
- case 0: // Listitems start with 0, not 1
- {
- ShowPlayerDialog(playerid, 8951, DIALOG_STYLE_LIST, "Select Reason", "1.Team Attack\n2.Team Jack\n3.Team Kill\n4.Attack Admins On Duty\n5.Other","Select","Quit");
- }
- case 1:
- {
- ShowPlayerDialog(playerid, 8952, DIALOG_STYLE_LIST, "Select Reason", "1.Health Hacks\n2.info Ammo Hacks\n3.Minigun Hacks\n4.Weapon Hacks\n5.Spawn Vehicle Hacks\n6.Portal Gun Hacks\n7.Cleo Mods\n8.Other","Select","Quit");
- }
- case 2:
- {
- new str[128], pName[24];
- GetPlayerName(playerid, pName, sizeof(pName));
- format(str, sizeof(str), "Adminsitator ''%s'' Has Healed You", pName);
- SendClientMessage(PClick[playerid], COLOR_GREEN, str);
- SendClientMessage(playerid, COLOR_GREEN, "{91FF00}You '{FF003F}heal' {91FF00}the player.");
- SetPlayerHealth(PClick[playerid] , 100);
- }
- case 3:
- {
- new str[128], pName[24];
- GetPlayerName(playerid, pName, sizeof(pName));
- format(str, sizeof(str), "Adminsitator ''%s'' Has Armour You", pName);
- SendClientMessage(PClick[playerid], COLOR_GREEN, str);
- SendClientMessage(playerid, COLOR_GREEN, "{91FF00}You '{FF003F}have set the' {91FF00}players armour");
- SetPlayerArmour(PClick[playerid] , 100);
- }
- case 4:
- {
- SendClientMessage(playerid, COLOR_GREEN, "{91FF00}You '{FF003F}have killed' {91FF00}the player");
- SetPlayerHealth(PClick[playerid] , 0);
- }
- case 5:
- {
- ShowPlayerDialog(playerid, 8596, DIALOG_STYLE_INPUT, "Enter money value", "Type The Money Here", "Give Him","Quit");
- }
- case 6:
- {
- SendClientMessage(playerid, COLOR_GREEN, "{91FF00}You '{FF003F}teleported' {91FF00}the player to your position!");
- new Float:x, Float:y, Float:z; GetPlayerPos(playerid,x,y,z); SetPlayerInterior(PClick[playerid],GetPlayerInterior(PClick[playerid]));
- SetPlayerVirtualWorld(PClick[playerid],GetPlayerVirtualWorld(playerid));
- if(GetPlayerState(PClick[playerid]) == 2) {
- new VehicleID = GetPlayerVehicleID(PClick[playerid]);
- SetVehiclePos(VehicleID,x+3,y,z); LinkVehicleToInterior(VehicleID,GetPlayerInterior(playerid));
- SetVehicleVirtualWorld(GetPlayerVehicleID(PClick[playerid]),GetPlayerVirtualWorld(playerid));
- } else SetPlayerPos(PClick[playerid],x+2,y,z);
- new str[128], pName[24];
- GetPlayerName(playerid, pName, sizeof(pName));
- format(str, sizeof(str), "Adminsitator ''%s'' has teleported them to you.", pName);
- SendClientMessage(PClick[playerid], COLOR_GREEN, str);
- }
- case 7:
- {
- SendClientMessage(playerid, COLOR_GREEN, "{91FF00}You '{FF003F}have been teleported' {91FF00}to the player");
- new Float:x, Float:y, Float:z; GetPlayerPos(PClick[playerid],x,y,z); SetPlayerInterior(playerid,GetPlayerInterior(PClick[playerid]));
- SetPlayerVirtualWorld(playerid,GetPlayerVirtualWorld(PClick[playerid]));
- if(GetPlayerState(playerid) == 2) {
- SetVehiclePos(GetPlayerVehicleID(playerid),x+3,y,z); LinkVehicleToInterior(GetPlayerVehicleID(playerid),GetPlayerInterior(PClick[playerid]));
- SetVehicleVirtualWorld(GetPlayerVehicleID(playerid),GetPlayerVirtualWorld(PClick[playerid]));
- } else SetPlayerPos(playerid,x+2,y,z);
- }
- case 8:
- {
- SendClientMessage(playerid, COLOR_GREEN, "{91FF00}You '{FF003F}haxe exploded' {91FF00}the player.");
- new Float:burnx, Float:burny, Float:burnz; GetPlayerPos(PClick[playerid],burnx, burny, burnz); CreateExplosion(burnx, burny , burnz, 7,10.0);
- }
- case 9:
- {
- SendClientMessage(playerid, COLOR_GREEN, "{91FF00}You '{FF003F}have burned' {91FF00}the player.");
- new Float:x, Float:y, Float:z;
- GetPlayerPos(PClick[playerid], x, y, z);
- return CreateExplosion(x, y , z + 3, 1, 10);
- }
- case 10:
- {
- SendClientMessage(playerid, COLOR_GREEN, "{91FF00}You '{FF003F}have spawned' {91FF00}the player!");
- SpawnPlayer(PClick[playerid]);
- }
- case 11:
- {
- SendClientMessage(playerid, COLOR_GREEN, "{91FF00}You '{FF003F}have slapped' {91FF00}the player");
- new Float:Health, Float:x, Float:y, Float:z; GetPlayerHealth(PClick[playerid],Health); SetPlayerHealth(PClick[playerid],Health-25);
- GetPlayerPos(PClick[playerid],x,y,z); SetPlayerPos(PClick[playerid],x,y,z+5); PlayerPlaySound(playerid,1190,0.0,0.0,0.0); PlayerPlaySound(PClick[playerid],1190,0.0,0.0,0.0);
- }
- case 12:
- {
- if(Jail [PClick[playerid]] == 1) return SendClientMessage(playerid, COLOR_RED,"Player is already jailed!");
- new str[128], pName[24], pNamee[24];
- GetPlayerName(PClick[playerid], pNamee, sizeof(pNamee));
- GetPlayerName(playerid, pName, sizeof(pName));
- format(str, sizeof(str), "Adminsitator ''%s'' Has jailed %s, behave next time!", pName, pNamee);
- SendClientMessageToAll(COLOR_BLUE, str);
- Jail [PClick[playerid]] = 1;
- SetPlayerPos(PClick[playerid], 264.8763,81.9862,1001.0390);
- SetPlayerInterior(PClick[playerid], 6);
- }
- case 13:
- {
- if(Jail [PClick[playerid]] == 0) return SendClientMessage(playerid, COLOR_RED,"Player is not in jail!");
- new str[128], pName[24], pNamee[24];
- GetPlayerName(PClick[playerid], pNamee, sizeof(pNamee));
- GetPlayerName(playerid, pName, sizeof(pName));
- format(str, sizeof(str), "Adminsitator ''%s'' has unjailed %s, behave next time!", pName, pNamee);
- SendClientMessageToAll(COLOR_BLUE, str);
- Jail[PClick[playerid]] = 0;
- SpawnPlayer(PClick[playerid]);
- SetPlayerInterior(PClick[playerid], 0);
- GameTextForPlayer(PClick[playerid], "~g~Unjailed", 4500, 4);
- }
- case 14:
- {
- ShowPlayerDialog(playerid,4265 ,DIALOG_STYLE_INPUT, "Enter score value","Type The Score Here", "Give score", "Quit");
- }
- case 15:
- {
- if(!IsPlayerInAnyVehicle(PClick[playerid])) return SendClientMessage(playerid, COLOR_RED,"Player is not inside a vehicle!");
- SendClientMessage(playerid, COLOR_GREEN, "{91FF00}You '{FF003F}ejected' {91FF00}the player from his vehicle");
- new Float:x, Float:y, Float:z;
- GetPlayerPos(PClick[playerid],x,y,z);
- return SetPlayerPos(PClick[playerid],x,y,z+3);
- new str[128], pName[24];
- GetPlayerName(playerid, pName, sizeof(pName));
- format(str, sizeof(str), "Adminsitator ''%s'' has ejected a player.!", pName);
- SendClientMessage(PClick[playerid], COLOR_GREEN, str);
- }
- case 16:
- {
- ShowPlayerDialog(playerid, 1259, DIALOG_STYLE_LIST, "Select a weapon","Chainsaw\nKnife\n9mm\nSilenced 9mm\nDesert Eagle\nShotgun\nSawn-off Shotgun\nCombat Shotgun\nMicro SMG\nMP5\nAK-47\nM4\nTec9\nCountry Rifle\nSniper Rifle\nRocket Launcher\nFlamethrower\nParachute\nGrenade\nMolotov Cocktail","Give weapon","Quit");
- }
- case 17:
- {
- if(Freeze[PClick[playerid]] == 1) return SendClientMessage(playerid, COLOR_RED, "Player already frozen.");
- SendClientMessage(playerid, COLOR_GREEN, "{91FF00}You '{FF003F}have frozen' {91FF00}the player.");
- Freeze[PClick[playerid]] = 1;
- GameTextForPlayer(PClick[playerid]," ~r~Frozen!", 5000, 4);
- TogglePlayerControllable(PClick[playerid], false);
- new str[128], pName[24], pNamee[24];
- GetPlayerName(PClick[playerid], pNamee, sizeof(pNamee));
- GetPlayerName(playerid, pName, sizeof(pName));
- format(str, sizeof(str), "Adminsitator ''%s'' has frozen %s", pName, pNamee);
- SendClientMessageToAll(COLOR_BLUE, str);
- }
- case 18:
- {
- if(Freeze[PClick[playerid]] == 0) return SendClientMessage(playerid, COLOR_RED, "Player is not frozen!");
- SendClientMessage(playerid, COLOR_GREEN, "{91FF00}You '{FF003F}have unfrozen' {91FF00}the player!");
- Freeze[PClick[playerid]] = 0;
- GameTextForPlayer(PClick[playerid]," ~g~UnFrozen!", 5000, 4);
- TogglePlayerControllable(PClick[playerid], true);
- new str[128], pName[24], pNamee[24];
- GetPlayerName(PClick[playerid], pNamee, sizeof(pNamee));
- GetPlayerName(playerid, pName, sizeof(pName));
- format(str, sizeof(str), "Adminsitator ''%s'' has unfrozen %s", pName, pNamee);
- SendClientMessageToAll(COLOR_BLUE, str);
- }
- case 19:
- {
- SendClientMessage(playerid, COLOR_GREEN, "{91FF00}You '{FF003F}disarmed' {91FF00}the player.");
- ResetPlayerWeapons(PClick[playerid]);
- }
- case 20:
- {
- ShowPlayerDialog(playerid, 1745, DIALOG_STYLE_INPUT, "Type skin value", "Skin id here", "Change","Quit");
- }
- case 21:
- {
- ShowPlayerDialog(playerid, 1499, DIALOG_STYLE_LIST, "Select a colour","{E01B1B}Red\n{39E01B}Green\n{FFFFFF}White\n{FFF352}Yellow\n{FA05A4}Pink\n{800B0B}Brown\n{FA6A02}Orange\n{C802FA}Purple","Select","Quit");
- }
- case 22:
- {
- ShowPlayerDialog(playerid, 1599, DIALOG_STYLE_INPUT, "Selecting health value, 100 is full","Type The Number Of Health","OK","Quit");
- }
- case 23:
- {
- ShowPlayerDialog(playerid, 1399, DIALOG_STYLE_INPUT, "Type armour value","Type The Number Of Armour","OK","Quit");
- }
- case 24:
- {
- SendClientMessage(playerid, COLOR_GREEN, "{91FF00}You '{FF003F}have forced' {91FF00}the player");
- ForceClassSelection(PClick[playerid]);
- SetPlayerHealth(PClick[playerid], 0);
- new str[128], pName[24];
- GetPlayerName(playerid, pName, sizeof(pName));
- format(str, sizeof(str), "Adminsitator ''%s'' has forced you to class selection", pName);
- SendClientMessage(PClick[playerid],COLOR_BLUE, str);
- }
- case 25:
- {
- SendClientMessage(playerid, COLOR_GREEN, "{91FF00}You '{FF003F}gave a jetpack' {91FF00}to the player.");
- SetPlayerSpecialAction(PClick[playerid], 2);
- new str[128], pName[24];
- GetPlayerName(playerid, pName, sizeof(pName));
- format(str, sizeof(str), "Adminsitator ''%s'' Has Given You JETPACK", pName);
- SendClientMessage(PClick[playerid],COLOR_BLUE, str);
- }
- case 26:
- {
- SendClientMessage(playerid, COLOR_GREEN, "{91FF00}You '{FF003F}healed and armoured' {91FF00}the player");
- SetPlayerHealth(PClick[playerid], 100);
- SetPlayerArmour(PClick[playerid], 100);
- new str[128], pName[24];
- GetPlayerName(playerid, pName, sizeof(pName));
- format(str, sizeof(str), "Adminsitator ''%s'' Has restored you", pName);
- SendClientMessage(PClick[playerid],COLOR_BLUE, str);
- }
- case 27:
- {
- if(Muted[PClick[playerid]] == 1) return SendClientMessage(playerid, COLOR_RED, "Player is already muted.!");
- Muted[PClick[playerid]] = 1;
- SendClientMessage(PClick[playerid],COLOR_RED, "You have been muted bitch!");
- PlayerPlaySound(PClick[playerid], 1057, 0.0,0.0,0.0);
- }
- case 28:
- {
- if(Muted[PClick[playerid]] == 0) return SendClientMessage(playerid, COLOR_RED, "Player is not muted");
- SendClientMessage(PClick[playerid], COLOR_RED, "Unmuted, behave now!");
- Muted[PClick[playerid]] = 0;
- PlayerPlaySound(PClick[playerid], 1057, 0.0,0.0,0.0);
- }
- case 29:
- {
- ShowPlayerDialog(playerid, 4888, DIALOG_STYLE_INPUT, "Type score value", "Type The Score Here", "Set","Quit");
- }
- case 30:
- {
- ShowPlayerDialog(playerid, 4887, DIALOG_STYLE_INPUT, "Type score value", "Type The Money Here", "Set","Quit");
- }
- case 31:
- {
- if(playerid == PClick[playerid]) return SendClientMessage(playerid, COLOR_RED,"You cannot spectate yourself!");
- if(SPEC[playerid] == 1) return SendClientMessage(playerid, COLOR_BLUE2,"You are already in spectate mode!");
- TogglePlayerSpectating(playerid, true);
- PlayerSpectatePlayer(playerid, PClick[playerid]);
- SendClientMessage(playerid, COLOR_BLUE2,"Now Spectating player");
- SPEC[playerid] = 1;
- }
- case 32:
- {
- if(SPEC[playerid] == 0) return SendClientMessage(playerid, COLOR_BLUE2,"You are not spectating any player");
- TogglePlayerSpectating(playerid, false);
- GameTextForPlayer(playerid, "~w~Spectating ended", 2000, 4);
- SPEC[playerid] = 0;
- }
- }
- }
- case 8952:
- {
- switch(listitem)
- {
- case 0:
- {
- new str[128], pName[24], pNamee[24];
- GetPlayerName(PClick[playerid], pNamee, sizeof(pNamee));
- GetPlayerName(playerid, pName, sizeof(pName));
- format(str, sizeof(str), "Adminsitator ''%s'' Has Banned %s (Reason: Health Hacks)", pName, pNamee);
- SendClientMessageToAll(COLOR_RED, str);
- Ban(PClick[playerid]);
- }
- case 1:
- {
- new str[128], pName[24], pNamee[24];
- GetPlayerName(PClick[playerid], pNamee, sizeof(pNamee));
- GetPlayerName(playerid, pName, sizeof(pName));
- format(str, sizeof(str), "Adminsitator ''%s'' Has Banned %s (Reason: Ammo Hacks)", pName, pNamee);
- SendClientMessageToAll(COLOR_RED, str);
- Ban(PClick[playerid]);
- }
- case 2:
- {
- new str[128], pName[24], pNamee[24];
- GetPlayerName(PClick[playerid], pNamee, sizeof(pNamee));
- GetPlayerName(playerid, pName, sizeof(pName));
- format(str, sizeof(str), "Adminsitator ''%s'' Has Banned %s (Reason: Minigun Hack)", pName, pNamee);
- SendClientMessageToAll(COLOR_RED, str);
- Ban(PClick[playerid]);
- }
- case 3:
- {
- new str[128], pName[24], pNamee[24];
- GetPlayerName(PClick[playerid], pNamee, sizeof(pNamee));
- GetPlayerName(playerid, pName, sizeof(pName));
- format(str, sizeof(str), "Adminsitator ''%s'' Has Banned %s (Reason: Weapons Hack)", pName, pNamee);
- SendClientMessageToAll(COLOR_RED, str);
- Ban(PClick[playerid]);
- }
- case 4:
- {
- new str[128], pName[24], pNamee[24];
- GetPlayerName(PClick[playerid], pNamee, sizeof(pNamee));
- GetPlayerName(playerid, pName, sizeof(pName));
- format(str, sizeof(str), "Adminsitator ''%s'' Has Banned %s (Reason: Spawn Vehicle Hack)", pName, pNamee);
- SendClientMessageToAll(COLOR_RED, str);
- Ban(PClick[playerid]);
- }
- case 5:
- {
- new str[128], pName[24], pNamee[24];
- GetPlayerName(PClick[playerid], pNamee, sizeof(pNamee));
- GetPlayerName(playerid, pName, sizeof(pName));
- format(str, sizeof(str), "Adminsitator ''%s'' Has Banned %s (Reason: Portal Gun Hack)", pName, pNamee);
- SendClientMessageToAll(COLOR_RED, str);
- Ban(PClick[playerid]);
- }
- case 6:
- {
- new str[128], pName[24], pNamee[24];
- GetPlayerName(PClick[playerid], pNamee, sizeof(pNamee));
- GetPlayerName(playerid, pName, sizeof(pName));
- format(str, sizeof(str), "Adminsitator ''%s'' Has Banned %s (Reason: Cleo Mods Hack)", pName, pNamee);
- SendClientMessageToAll(COLOR_RED, str);
- Ban(PClick[playerid]);
- }
- case 7:
- {
- ShowPlayerDialog(playerid, 8772, DIALOG_STYLE_INPUT, "Inser banning reason","Reason here","Ban","Quit");
- }
- }
- }
- case 8951:// Our dialog!
- {
- switch(listitem)// Checking which listitem was selected
- {
- case 0:// The first item listed
- {
- new str[128], pName[24], pNamee[24];
- GetPlayerName(PClick[playerid], pNamee, sizeof(pNamee));
- GetPlayerName(playerid, pName, sizeof(pName));
- format(str, sizeof(str), "Adminsitator ''%s'' Has Kicked %s (Reason: Team Attack)", pName, pNamee);
- SendClientMessageToAll(COLOR_RED, str);
- Kick(PClick[playerid]);
- }
- case 1:
- {
- new str[128], pName[24], pNamee[24];
- GetPlayerName(PClick[playerid], pNamee, sizeof(pNamee));
- GetPlayerName(playerid, pName, sizeof(pName));
- format(str, sizeof(str), "Adminsitator ''%s'' Has Kicked %s (Reason: Team Jack)", pName, pNamee);
- SendClientMessageToAll(COLOR_RED, str);
- Kick(PClick[playerid]);
- }
- case 2:
- {
- new str[128], pName[24], pNamee[24];
- GetPlayerName(PClick[playerid], pNamee, sizeof(pNamee));
- GetPlayerName(playerid, pName, sizeof(pName));
- format(str, sizeof(str), "Adminsitator ''%s'' Has Kicked %s (Reason: Team Kill)", pName, pNamee);
- SendClientMessageToAll(COLOR_RED, str);
- Kick(PClick[playerid]);
- }
- case 3:
- {
- new str[128], pName[24], pNamee[24];
- GetPlayerName(PClick[playerid], pNamee, sizeof(pNamee));
- GetPlayerName(playerid, pName, sizeof(pName));
- format(str, sizeof(str), "Adminsitator ''%s'' Has Kicked %s (Reason: Attacking Admins)", pName, pNamee);
- SendClientMessageToAll(COLOR_RED, str);
- Kick(PClick[playerid]);
- }
- case 4:
- {
- ShowPlayerDialog(playerid, 8777, DIALOG_STYLE_INPUT, "Insert kick reason","Reason here","Kick","Quit");
- }
- }
- }
- case 1259:// Our dialog!
- {
- switch(listitem)// Checking which listitem was selected
- {
- case 0:// The first item listed
- {
- GivePlayerWeapon(PClick[playerid], 9, 1);
- }
- case 1:
- {
- GivePlayerWeapon(PClick[playerid], 4, 1);
- }
- case 2:
- {
- GivePlayerWeapon(PClick[playerid], 22, 500);
- }
- case 3:
- {
- GivePlayerWeapon(PClick[playerid], 23, 500);
- }
- case 4:
- {
- GivePlayerWeapon(PClick[playerid], 24, 500);
- }
- case 5:
- {
- GivePlayerWeapon(PClick[playerid], 25, 500);
- }
- case 6:
- {
- GivePlayerWeapon(PClick[playerid], 26, 500);
- }
- case 7:
- {
- GivePlayerWeapon(PClick[playerid], 27, 500);
- }
- case 8:
- {
- GivePlayerWeapon(PClick[playerid], 28, 500);
- }
- case 9:
- {
- GivePlayerWeapon(PClick[playerid], 29, 500);
- }
- case 10:
- {
- GivePlayerWeapon(PClick[playerid], 30, 500);
- }
- case 11:
- {
- GivePlayerWeapon(PClick[playerid], 31, 500);
- }
- case 12:
- {
- GivePlayerWeapon(PClick[playerid], 32, 500);
- }
- case 13:
- {
- GivePlayerWeapon(PClick[playerid], 33, 500);
- }
- case 14:
- {
- GivePlayerWeapon(PClick[playerid], 34, 500);
- }
- case 15:
- {
- GivePlayerWeapon(PClick[playerid], 35, 10);
- }
- case 16:
- {
- GivePlayerWeapon(PClick[playerid], 37, 1000);
- }
- case 17:
- {
- GivePlayerWeapon(PClick[playerid], 46, 1);
- }
- case 18:
- {
- GivePlayerWeapon(PClick[playerid], 16, 10);
- }
- case 19:
- {
- GivePlayerWeapon(PClick[playerid], 18, 10);
- }
- }
- }
- case 1499:// Our dialog!
- {
- switch(listitem)// Checking which listitem was selected
- {
- case 0:// The first item listed
- {
- SetPlayerColor(PClick[playerid], COLOR_RED);
- }
- case 1:
- {
- SetPlayerColor(PClick[playerid], COLOR_GREEN);
- }
- case 2:
- {
- SetPlayerColor(PClick[playerid], COLOR_WHITE);
- }
- case 3:
- {
- SetPlayerColor(PClick[playerid], COLOR_YELLOW);
- }
- case 4:
- {
- SetPlayerColor(PClick[playerid], COLOR_PINK);
- }
- case 5:
- {
- SetPlayerColor(PClick[playerid], COLOR_BROWN);
- }
- case 6:
- {
- SetPlayerColor(PClick[playerid], COLOR_ORANGE);
- }
- case 7:
- {
- SetPlayerColor(PClick[playerid], COLOR_PURPLE);
- }
- }
- }
- case 8596:
- {
- new value = strval(inputtext);
- if(value <= 0) value *= -1;
- GivePlayerMoney(PClick[playerid], value);
- SendClientMessage(playerid, COLOR_GREEN, "{91FF00}You '{FF003F}gave some cash' {91FF00}to the player");
- }
- case 4265:
- {
- new value = strval(inputtext);
- if(value <= 0) value *= -1;
- SetPlayerScore(PClick[playerid],GetPlayerScore(PClick[playerid])+value);
- SendClientMessage(playerid, COLOR_GREEN, "{91FF00}You '{FF003F}gave some score' {91FF00}to the {91FF00}player");
- }
- case 1745:
- {
- new value = strval(inputtext);
- if(value <= 0) value *= -1;
- SetPlayerSkin(PClick[playerid], value);
- SendClientMessage(playerid, COLOR_GREEN, "{91FF00}You '{FF003F}have changed' {91FF00}the players {91FF00}skin");
- }
- case 1599:
- {
- new value = strval(inputtext);
- if(value <= 0) value *= -1;
- SetPlayerHealth(PClick[playerid], value);
- SendClientMessage(playerid, COLOR_GREEN, "{91FF00}You '{FF003F}have set the' {91FF00}players {91FF00}health");
- }
- case 1399:
- {
- new value = strval(inputtext);
- if(value <= 0) value *= -1;
- SetPlayerArmour(PClick[playerid], value);
- SendClientMessage(playerid, COLOR_GREEN, "{91FF00}You '{FF003F}have set' {91FF00}the players {91FF00}armour");
- }
- case 8777:
- {
- new str[128], pName[24], pNamee[24];
- GetPlayerName(PClick[playerid], pNamee, sizeof(pNamee));
- GetPlayerName(playerid, pName, sizeof(pName));
- format(str, sizeof(str), "Adminsitator ''%s'' Has Kicked %s (Reason: %s)", pName,pNamee ,inputtext);
- SendClientMessageToAll(COLOR_RED, str);
- Kick(PClick[playerid]);
- }
- case 8772:
- {
- new str[128], pName[24], pNamee[24];
- GetPlayerName(PClick[playerid], pNamee, sizeof(pNamee));
- GetPlayerName(playerid, pName, sizeof(pName));
- format(str, sizeof(str), "Adminsitator ''%s'' Has Ban %s (Reason: %s)", pName,pNamee, inputtext);
- SendClientMessageToAll(COLOR_RED, str);
- Ban(PClick[playerid]);
- }
- case 4888:
- {
- new value = strval(inputtext);
- if(value <= 0) value *= -1;
- SetPlayerScore(PClick[playerid], value);
- SendClientMessage(playerid, COLOR_GREEN, "{91FF00}You '{FF003F}have changed' {91FF00}the players {91FF00}score");
- }
- case 4887:
- {
- new value = strval(inputtext);
- if(value <= 0) value *= -1;
- SetPlayerMoney(playerid, value);
- SendClientMessage(playerid, COLOR_GREEN, "{91FF00}You '{FF003F}have changed' {91FF00}the players {91FF00}money");
- }
- }
- }
- }
- stock SetPlayerMoney(playerid,amount)
- {
- ResetPlayerMoney(playerid);
- GivePlayerMoney(playerid, amount);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment