Guest User

Untitled

a guest
Jan 12th, 2013
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 28.43 KB | None | 0 0
  1. //-------------------------------------//
  2. #define COLOR_LIGHTCORAL 0xF08080FF
  3. //-------------------------------------//
  4. #define COLOR_LIGHTCYAN 0xE0FFFFFF
  5. //-------------------------------------//
  6. #define COLOR_LIGHTG 0xFAFAD2FF
  7. //-------------------------------------//
  8. #define COLOR_LIGHTGRAY 0xD3D3D3FF
  9. //-------------------------------------//
  10. #define COLOR_LIGHTGREEN 0x41FF00FF
  11. //-------------------------------------//
  12. #define COLOR_LIGHTPINK 0xFFB6C1FF
  13. //-------------------------------------//
  14. #define COLOR_LIGHTSALMON 0xFFA07AFF
  15. //-------------------------------------//
  16. #define COLOR_LIGHTSKYBLUE 0x87CEFAFF
  17. //------------------------------------//
  18. #define Grey 0xC0C0C0FF
  19. //-------------------------------------//
  20. #define COLOR_LIGHTSLATEGRAY 0x778899FF
  21. //-------------------------------------//
  22. #define COLOR_LIGHTSTEELBLUE 0xB0C4DEFF
  23. //-------------------------------------//
  24. #define COLOR_PINK 0xFF60FFFF
  25. //-------------------------------------//
  26. #define COLOR_LIGHTYELLOW 0xFFFFE0FF
  27.  
  28. //------=Qther=-----------//
  29. new PClick[MAX_PLAYERS];
  30. new Jail[MAX_PLAYERS];
  31. new Freeze[MAX_PLAYERS];
  32. new Muted[MAX_PLAYERS];
  33. new SPEC[MAX_PLAYERS];
  34. //======================================================
  35. #if defined FILTERSCRIPT
  36.  
  37. public OnFilterScriptInit()
  38. {
  39. print("\n--------------------------------------");
  40. print(" ");
  41. print("--------------------------------------\n");
  42. return 1;
  43. }
  44.  
  45. public OnFilterScriptExit()
  46. {
  47. print("\n--------------------------------------");
  48. print("");
  49. print("--------------------------------------\n");
  50. return 1;
  51. }
  52.  
  53. #else
  54.  
  55. #endif
  56.  
  57. public OnPlayerText(playerid, text[])
  58. {
  59. {
  60. if(Muted[playerid])
  61. {
  62. SendClientMessage(playerid,0xFF8080FF,"You are muted!");
  63. return 0;
  64. }
  65. }
  66. return 1;
  67. }
  68.  
  69.  
  70. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  71. {
  72. if(IsPlayerAdmin(playerid))
  73. {
  74. new DialogText[1024];
  75. 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");
  76. 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");
  77. ShowPlayerDialog(playerid, 9562, DIALOG_STYLE_LIST, "Select admin action (By phantomcraft)", DialogText,"Action","Quit");
  78. PClick[playerid] = clickedplayerid;
  79. }
  80. return 1;
  81. }
  82.  
  83. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  84. {
  85. if(response)// Checking if they pressed the first button, if so continue:
  86. {
  87. switch(dialogid)//if your using only one dialog this isn't needed but you never know.
  88. {
  89. case 9562:// Our dialog
  90. {
  91. switch(listitem)// Checking which listitem was chosen
  92. {
  93. //==============================================================Start OF ACTION=====================================================//
  94. case 0: // Listitems start with 0, not 1
  95. {
  96. 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");
  97. }
  98. case 1:
  99. {
  100. 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");
  101. }
  102. case 2:
  103. {
  104. new str[128], pName[24];
  105. GetPlayerName(playerid, pName, sizeof(pName));
  106. format(str, sizeof(str), "Adminsitator ''%s'' Has Healed You", pName);
  107. SendClientMessage(PClick[playerid], COLOR_GREEN, str);
  108. SendClientMessage(playerid, COLOR_GREEN, "{91FF00}You '{FF003F}heal' {91FF00}the player.");
  109. SetPlayerHealth(PClick[playerid] , 100);
  110. }
  111. case 3:
  112. {
  113. new str[128], pName[24];
  114. GetPlayerName(playerid, pName, sizeof(pName));
  115. format(str, sizeof(str), "Adminsitator ''%s'' Has Armour You", pName);
  116. SendClientMessage(PClick[playerid], COLOR_GREEN, str);
  117. SendClientMessage(playerid, COLOR_GREEN, "{91FF00}You '{FF003F}have set the' {91FF00}players armour");
  118. SetPlayerArmour(PClick[playerid] , 100);
  119. }
  120. case 4:
  121. {
  122. SendClientMessage(playerid, COLOR_GREEN, "{91FF00}You '{FF003F}have killed' {91FF00}the player");
  123. SetPlayerHealth(PClick[playerid] , 0);
  124. }
  125. case 5:
  126. {
  127. ShowPlayerDialog(playerid, 8596, DIALOG_STYLE_INPUT, "Enter money value", "Type The Money Here", "Give Him","Quit");
  128.  
  129. }
  130. case 6:
  131. {
  132. SendClientMessage(playerid, COLOR_GREEN, "{91FF00}You '{FF003F}teleported' {91FF00}the player to your position!");
  133. new Float:x, Float:y, Float:z; GetPlayerPos(playerid,x,y,z); SetPlayerInterior(PClick[playerid],GetPlayerInterior(PClick[playerid]));
  134. SetPlayerVirtualWorld(PClick[playerid],GetPlayerVirtualWorld(playerid));
  135. if(GetPlayerState(PClick[playerid]) == 2) {
  136. new VehicleID = GetPlayerVehicleID(PClick[playerid]);
  137. SetVehiclePos(VehicleID,x+3,y,z); LinkVehicleToInterior(VehicleID,GetPlayerInterior(playerid));
  138. SetVehicleVirtualWorld(GetPlayerVehicleID(PClick[playerid]),GetPlayerVirtualWorld(playerid));
  139. } else SetPlayerPos(PClick[playerid],x+2,y,z);
  140. new str[128], pName[24];
  141. GetPlayerName(playerid, pName, sizeof(pName));
  142. format(str, sizeof(str), "Adminsitator ''%s'' has teleported them to you.", pName);
  143. SendClientMessage(PClick[playerid], COLOR_GREEN, str);
  144. }
  145. case 7:
  146. {
  147. SendClientMessage(playerid, COLOR_GREEN, "{91FF00}You '{FF003F}have been teleported' {91FF00}to the player");
  148. new Float:x, Float:y, Float:z; GetPlayerPos(PClick[playerid],x,y,z); SetPlayerInterior(playerid,GetPlayerInterior(PClick[playerid]));
  149. SetPlayerVirtualWorld(playerid,GetPlayerVirtualWorld(PClick[playerid]));
  150. if(GetPlayerState(playerid) == 2) {
  151. SetVehiclePos(GetPlayerVehicleID(playerid),x+3,y,z); LinkVehicleToInterior(GetPlayerVehicleID(playerid),GetPlayerInterior(PClick[playerid]));
  152. SetVehicleVirtualWorld(GetPlayerVehicleID(playerid),GetPlayerVirtualWorld(PClick[playerid]));
  153. } else SetPlayerPos(playerid,x+2,y,z);
  154. }
  155. case 8:
  156. {
  157. SendClientMessage(playerid, COLOR_GREEN, "{91FF00}You '{FF003F}haxe exploded' {91FF00}the player.");
  158. new Float:burnx, Float:burny, Float:burnz; GetPlayerPos(PClick[playerid],burnx, burny, burnz); CreateExplosion(burnx, burny , burnz, 7,10.0);
  159. }
  160. case 9:
  161. {
  162.  
  163. SendClientMessage(playerid, COLOR_GREEN, "{91FF00}You '{FF003F}have burned' {91FF00}the player.");
  164. new Float:x, Float:y, Float:z;
  165. GetPlayerPos(PClick[playerid], x, y, z);
  166. return CreateExplosion(x, y , z + 3, 1, 10);
  167. }
  168. case 10:
  169. {
  170. SendClientMessage(playerid, COLOR_GREEN, "{91FF00}You '{FF003F}have spawned' {91FF00}the player!");
  171. SpawnPlayer(PClick[playerid]);
  172. }
  173. case 11:
  174. {
  175. SendClientMessage(playerid, COLOR_GREEN, "{91FF00}You '{FF003F}have slapped' {91FF00}the player");
  176. new Float:Health, Float:x, Float:y, Float:z; GetPlayerHealth(PClick[playerid],Health); SetPlayerHealth(PClick[playerid],Health-25);
  177. 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);
  178. }
  179. case 12:
  180. {
  181. if(Jail [PClick[playerid]] == 1) return SendClientMessage(playerid, COLOR_RED,"Player is already jailed!");
  182. new str[128], pName[24], pNamee[24];
  183. GetPlayerName(PClick[playerid], pNamee, sizeof(pNamee));
  184. GetPlayerName(playerid, pName, sizeof(pName));
  185. format(str, sizeof(str), "Adminsitator ''%s'' Has jailed %s, behave next time!", pName, pNamee);
  186. SendClientMessageToAll(COLOR_BLUE, str);
  187. Jail [PClick[playerid]] = 1;
  188. SetPlayerPos(PClick[playerid], 264.8763,81.9862,1001.0390);
  189. SetPlayerInterior(PClick[playerid], 6);
  190. }
  191. case 13:
  192. {
  193. if(Jail [PClick[playerid]] == 0) return SendClientMessage(playerid, COLOR_RED,"Player is not in jail!");
  194. new str[128], pName[24], pNamee[24];
  195. GetPlayerName(PClick[playerid], pNamee, sizeof(pNamee));
  196. GetPlayerName(playerid, pName, sizeof(pName));
  197. format(str, sizeof(str), "Adminsitator ''%s'' has unjailed %s, behave next time!", pName, pNamee);
  198. SendClientMessageToAll(COLOR_BLUE, str);
  199. Jail[PClick[playerid]] = 0;
  200. SpawnPlayer(PClick[playerid]);
  201. SetPlayerInterior(PClick[playerid], 0);
  202. GameTextForPlayer(PClick[playerid], "~g~Unjailed", 4500, 4);
  203. }
  204. case 14:
  205. {
  206. ShowPlayerDialog(playerid,4265 ,DIALOG_STYLE_INPUT, "Enter score value","Type The Score Here", "Give score", "Quit");
  207. }
  208. case 15:
  209. {
  210. if(!IsPlayerInAnyVehicle(PClick[playerid])) return SendClientMessage(playerid, COLOR_RED,"Player is not inside a vehicle!");
  211. SendClientMessage(playerid, COLOR_GREEN, "{91FF00}You '{FF003F}ejected' {91FF00}the player from his vehicle");
  212. new Float:x, Float:y, Float:z;
  213. GetPlayerPos(PClick[playerid],x,y,z);
  214. return SetPlayerPos(PClick[playerid],x,y,z+3);
  215. new str[128], pName[24];
  216. GetPlayerName(playerid, pName, sizeof(pName));
  217. format(str, sizeof(str), "Adminsitator ''%s'' has ejected a player.!", pName);
  218. SendClientMessage(PClick[playerid], COLOR_GREEN, str);
  219. }
  220. case 16:
  221. {
  222. 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");
  223. }
  224. case 17:
  225. {
  226. if(Freeze[PClick[playerid]] == 1) return SendClientMessage(playerid, COLOR_RED, "Player already frozen.");
  227. SendClientMessage(playerid, COLOR_GREEN, "{91FF00}You '{FF003F}have frozen' {91FF00}the player.");
  228. Freeze[PClick[playerid]] = 1;
  229. GameTextForPlayer(PClick[playerid]," ~r~Frozen!", 5000, 4);
  230. TogglePlayerControllable(PClick[playerid], false);
  231. new str[128], pName[24], pNamee[24];
  232. GetPlayerName(PClick[playerid], pNamee, sizeof(pNamee));
  233. GetPlayerName(playerid, pName, sizeof(pName));
  234. format(str, sizeof(str), "Adminsitator ''%s'' has frozen %s", pName, pNamee);
  235. SendClientMessageToAll(COLOR_BLUE, str);
  236. }
  237. case 18:
  238. {
  239. if(Freeze[PClick[playerid]] == 0) return SendClientMessage(playerid, COLOR_RED, "Player is not frozen!");
  240. SendClientMessage(playerid, COLOR_GREEN, "{91FF00}You '{FF003F}have unfrozen' {91FF00}the player!");
  241. Freeze[PClick[playerid]] = 0;
  242. GameTextForPlayer(PClick[playerid]," ~g~UnFrozen!", 5000, 4);
  243. TogglePlayerControllable(PClick[playerid], true);
  244. new str[128], pName[24], pNamee[24];
  245. GetPlayerName(PClick[playerid], pNamee, sizeof(pNamee));
  246. GetPlayerName(playerid, pName, sizeof(pName));
  247. format(str, sizeof(str), "Adminsitator ''%s'' has unfrozen %s", pName, pNamee);
  248. SendClientMessageToAll(COLOR_BLUE, str);
  249. }
  250. case 19:
  251. {
  252. SendClientMessage(playerid, COLOR_GREEN, "{91FF00}You '{FF003F}disarmed' {91FF00}the player.");
  253. ResetPlayerWeapons(PClick[playerid]);
  254. }
  255. case 20:
  256. {
  257.  
  258. ShowPlayerDialog(playerid, 1745, DIALOG_STYLE_INPUT, "Type skin value", "Skin id here", "Change","Quit");
  259. }
  260. case 21:
  261. {
  262. 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");
  263. }
  264. case 22:
  265. {
  266. ShowPlayerDialog(playerid, 1599, DIALOG_STYLE_INPUT, "Selecting health value, 100 is full","Type The Number Of Health","OK","Quit");
  267. }
  268. case 23:
  269. {
  270. ShowPlayerDialog(playerid, 1399, DIALOG_STYLE_INPUT, "Type armour value","Type The Number Of Armour","OK","Quit");
  271. }
  272. case 24:
  273. {
  274. SendClientMessage(playerid, COLOR_GREEN, "{91FF00}You '{FF003F}have forced' {91FF00}the player");
  275. ForceClassSelection(PClick[playerid]);
  276. SetPlayerHealth(PClick[playerid], 0);
  277. new str[128], pName[24];
  278. GetPlayerName(playerid, pName, sizeof(pName));
  279. format(str, sizeof(str), "Adminsitator ''%s'' has forced you to class selection", pName);
  280. SendClientMessage(PClick[playerid],COLOR_BLUE, str);
  281. }
  282. case 25:
  283. {
  284. SendClientMessage(playerid, COLOR_GREEN, "{91FF00}You '{FF003F}gave a jetpack' {91FF00}to the player.");
  285. SetPlayerSpecialAction(PClick[playerid], 2);
  286. new str[128], pName[24];
  287. GetPlayerName(playerid, pName, sizeof(pName));
  288. format(str, sizeof(str), "Adminsitator ''%s'' Has Given You JETPACK", pName);
  289. SendClientMessage(PClick[playerid],COLOR_BLUE, str);
  290. }
  291. case 26:
  292. {
  293. SendClientMessage(playerid, COLOR_GREEN, "{91FF00}You '{FF003F}healed and armoured' {91FF00}the player");
  294. SetPlayerHealth(PClick[playerid], 100);
  295. SetPlayerArmour(PClick[playerid], 100);
  296. new str[128], pName[24];
  297. GetPlayerName(playerid, pName, sizeof(pName));
  298. format(str, sizeof(str), "Adminsitator ''%s'' Has restored you", pName);
  299. SendClientMessage(PClick[playerid],COLOR_BLUE, str);
  300. }
  301. case 27:
  302. {
  303. if(Muted[PClick[playerid]] == 1) return SendClientMessage(playerid, COLOR_RED, "Player is already muted.!");
  304. Muted[PClick[playerid]] = 1;
  305. SendClientMessage(PClick[playerid],COLOR_RED, "You have been muted bitch!");
  306. PlayerPlaySound(PClick[playerid], 1057, 0.0,0.0,0.0);
  307. }
  308. case 28:
  309. {
  310. if(Muted[PClick[playerid]] == 0) return SendClientMessage(playerid, COLOR_RED, "Player is not muted");
  311. SendClientMessage(PClick[playerid], COLOR_RED, "Unmuted, behave now!");
  312. Muted[PClick[playerid]] = 0;
  313. PlayerPlaySound(PClick[playerid], 1057, 0.0,0.0,0.0);
  314. }
  315. case 29:
  316. {
  317. ShowPlayerDialog(playerid, 4888, DIALOG_STYLE_INPUT, "Type score value", "Type The Score Here", "Set","Quit");
  318. }
  319. case 30:
  320. {
  321. ShowPlayerDialog(playerid, 4887, DIALOG_STYLE_INPUT, "Type score value", "Type The Money Here", "Set","Quit");
  322. }
  323. case 31:
  324. {
  325. if(playerid == PClick[playerid]) return SendClientMessage(playerid, COLOR_RED,"You cannot spectate yourself!");
  326. if(SPEC[playerid] == 1) return SendClientMessage(playerid, COLOR_BLUE2,"You are already in spectate mode!");
  327. TogglePlayerSpectating(playerid, true);
  328. PlayerSpectatePlayer(playerid, PClick[playerid]);
  329. SendClientMessage(playerid, COLOR_BLUE2,"Now Spectating player");
  330. SPEC[playerid] = 1;
  331. }
  332. case 32:
  333. {
  334. if(SPEC[playerid] == 0) return SendClientMessage(playerid, COLOR_BLUE2,"You are not spectating any player");
  335. TogglePlayerSpectating(playerid, false);
  336. GameTextForPlayer(playerid, "~w~Spectating ended", 2000, 4);
  337. SPEC[playerid] = 0;
  338. }
  339. }
  340.  
  341. }
  342. case 8952:
  343. {
  344. switch(listitem)
  345. {
  346. case 0:
  347. {
  348.  
  349. new str[128], pName[24], pNamee[24];
  350. GetPlayerName(PClick[playerid], pNamee, sizeof(pNamee));
  351. GetPlayerName(playerid, pName, sizeof(pName));
  352. format(str, sizeof(str), "Adminsitator ''%s'' Has Banned %s (Reason: Health Hacks)", pName, pNamee);
  353. SendClientMessageToAll(COLOR_RED, str);
  354. Ban(PClick[playerid]);
  355. }
  356. case 1:
  357. {
  358.  
  359. new str[128], pName[24], pNamee[24];
  360. GetPlayerName(PClick[playerid], pNamee, sizeof(pNamee));
  361. GetPlayerName(playerid, pName, sizeof(pName));
  362. format(str, sizeof(str), "Adminsitator ''%s'' Has Banned %s (Reason: Ammo Hacks)", pName, pNamee);
  363. SendClientMessageToAll(COLOR_RED, str);
  364. Ban(PClick[playerid]);
  365. }
  366. case 2:
  367. {
  368.  
  369. new str[128], pName[24], pNamee[24];
  370. GetPlayerName(PClick[playerid], pNamee, sizeof(pNamee));
  371. GetPlayerName(playerid, pName, sizeof(pName));
  372. format(str, sizeof(str), "Adminsitator ''%s'' Has Banned %s (Reason: Minigun Hack)", pName, pNamee);
  373. SendClientMessageToAll(COLOR_RED, str);
  374. Ban(PClick[playerid]);
  375. }
  376. case 3:
  377. {
  378.  
  379. new str[128], pName[24], pNamee[24];
  380. GetPlayerName(PClick[playerid], pNamee, sizeof(pNamee));
  381. GetPlayerName(playerid, pName, sizeof(pName));
  382. format(str, sizeof(str), "Adminsitator ''%s'' Has Banned %s (Reason: Weapons Hack)", pName, pNamee);
  383. SendClientMessageToAll(COLOR_RED, str);
  384. Ban(PClick[playerid]);
  385. }
  386. case 4:
  387. {
  388.  
  389. new str[128], pName[24], pNamee[24];
  390. GetPlayerName(PClick[playerid], pNamee, sizeof(pNamee));
  391. GetPlayerName(playerid, pName, sizeof(pName));
  392. format(str, sizeof(str), "Adminsitator ''%s'' Has Banned %s (Reason: Spawn Vehicle Hack)", pName, pNamee);
  393. SendClientMessageToAll(COLOR_RED, str);
  394. Ban(PClick[playerid]);
  395. }
  396. case 5:
  397. {
  398.  
  399. new str[128], pName[24], pNamee[24];
  400. GetPlayerName(PClick[playerid], pNamee, sizeof(pNamee));
  401. GetPlayerName(playerid, pName, sizeof(pName));
  402. format(str, sizeof(str), "Adminsitator ''%s'' Has Banned %s (Reason: Portal Gun Hack)", pName, pNamee);
  403. SendClientMessageToAll(COLOR_RED, str);
  404. Ban(PClick[playerid]);
  405. }
  406. case 6:
  407. {
  408.  
  409. new str[128], pName[24], pNamee[24];
  410. GetPlayerName(PClick[playerid], pNamee, sizeof(pNamee));
  411. GetPlayerName(playerid, pName, sizeof(pName));
  412. format(str, sizeof(str), "Adminsitator ''%s'' Has Banned %s (Reason: Cleo Mods Hack)", pName, pNamee);
  413. SendClientMessageToAll(COLOR_RED, str);
  414. Ban(PClick[playerid]);
  415. }
  416. case 7:
  417. {
  418.  
  419. ShowPlayerDialog(playerid, 8772, DIALOG_STYLE_INPUT, "Inser banning reason","Reason here","Ban","Quit");
  420. }
  421. }
  422. }
  423. case 8951:// Our dialog!
  424. {
  425. switch(listitem)// Checking which listitem was selected
  426. {
  427. case 0:// The first item listed
  428. {
  429. new str[128], pName[24], pNamee[24];
  430. GetPlayerName(PClick[playerid], pNamee, sizeof(pNamee));
  431. GetPlayerName(playerid, pName, sizeof(pName));
  432. format(str, sizeof(str), "Adminsitator ''%s'' Has Kicked %s (Reason: Team Attack)", pName, pNamee);
  433. SendClientMessageToAll(COLOR_RED, str);
  434. Kick(PClick[playerid]);
  435. }
  436. case 1:
  437. {
  438.  
  439. new str[128], pName[24], pNamee[24];
  440. GetPlayerName(PClick[playerid], pNamee, sizeof(pNamee));
  441. GetPlayerName(playerid, pName, sizeof(pName));
  442. format(str, sizeof(str), "Adminsitator ''%s'' Has Kicked %s (Reason: Team Jack)", pName, pNamee);
  443. SendClientMessageToAll(COLOR_RED, str);
  444. Kick(PClick[playerid]);
  445. }
  446. case 2:
  447. {
  448.  
  449. new str[128], pName[24], pNamee[24];
  450. GetPlayerName(PClick[playerid], pNamee, sizeof(pNamee));
  451. GetPlayerName(playerid, pName, sizeof(pName));
  452. format(str, sizeof(str), "Adminsitator ''%s'' Has Kicked %s (Reason: Team Kill)", pName, pNamee);
  453. SendClientMessageToAll(COLOR_RED, str);
  454. Kick(PClick[playerid]);
  455. }
  456. case 3:
  457. {
  458.  
  459. new str[128], pName[24], pNamee[24];
  460. GetPlayerName(PClick[playerid], pNamee, sizeof(pNamee));
  461. GetPlayerName(playerid, pName, sizeof(pName));
  462. format(str, sizeof(str), "Adminsitator ''%s'' Has Kicked %s (Reason: Attacking Admins)", pName, pNamee);
  463. SendClientMessageToAll(COLOR_RED, str);
  464. Kick(PClick[playerid]);
  465. }
  466. case 4:
  467. {
  468.  
  469. ShowPlayerDialog(playerid, 8777, DIALOG_STYLE_INPUT, "Insert kick reason","Reason here","Kick","Quit");
  470. }
  471. }
  472. }
  473. case 1259:// Our dialog!
  474. {
  475. switch(listitem)// Checking which listitem was selected
  476. {
  477. case 0:// The first item listed
  478. {
  479. GivePlayerWeapon(PClick[playerid], 9, 1);
  480. }
  481. case 1:
  482. {
  483. GivePlayerWeapon(PClick[playerid], 4, 1);
  484. }
  485. case 2:
  486. {
  487. GivePlayerWeapon(PClick[playerid], 22, 500);
  488. }
  489. case 3:
  490. {
  491. GivePlayerWeapon(PClick[playerid], 23, 500);
  492. }
  493. case 4:
  494. {
  495. GivePlayerWeapon(PClick[playerid], 24, 500);
  496. }
  497. case 5:
  498. {
  499. GivePlayerWeapon(PClick[playerid], 25, 500);
  500. }
  501. case 6:
  502. {
  503. GivePlayerWeapon(PClick[playerid], 26, 500);
  504. }
  505. case 7:
  506. {
  507. GivePlayerWeapon(PClick[playerid], 27, 500);
  508. }
  509. case 8:
  510. {
  511. GivePlayerWeapon(PClick[playerid], 28, 500);
  512. }
  513. case 9:
  514. {
  515. GivePlayerWeapon(PClick[playerid], 29, 500);
  516. }
  517. case 10:
  518. {
  519. GivePlayerWeapon(PClick[playerid], 30, 500);
  520. }
  521. case 11:
  522. {
  523. GivePlayerWeapon(PClick[playerid], 31, 500);
  524. }
  525. case 12:
  526. {
  527. GivePlayerWeapon(PClick[playerid], 32, 500);
  528. }
  529. case 13:
  530. {
  531. GivePlayerWeapon(PClick[playerid], 33, 500);
  532. }
  533. case 14:
  534. {
  535. GivePlayerWeapon(PClick[playerid], 34, 500);
  536. }
  537. case 15:
  538. {
  539. GivePlayerWeapon(PClick[playerid], 35, 10);
  540. }
  541. case 16:
  542. {
  543. GivePlayerWeapon(PClick[playerid], 37, 1000);
  544. }
  545. case 17:
  546. {
  547. GivePlayerWeapon(PClick[playerid], 46, 1);
  548. }
  549. case 18:
  550. {
  551. GivePlayerWeapon(PClick[playerid], 16, 10);
  552. }
  553. case 19:
  554. {
  555. GivePlayerWeapon(PClick[playerid], 18, 10);
  556. }
  557. }
  558. }
  559. case 1499:// Our dialog!
  560. {
  561. switch(listitem)// Checking which listitem was selected
  562. {
  563. case 0:// The first item listed
  564. {
  565. SetPlayerColor(PClick[playerid], COLOR_RED);
  566. }
  567. case 1:
  568. {
  569. SetPlayerColor(PClick[playerid], COLOR_GREEN);
  570. }
  571. case 2:
  572. {
  573. SetPlayerColor(PClick[playerid], COLOR_WHITE);
  574. }
  575. case 3:
  576. {
  577. SetPlayerColor(PClick[playerid], COLOR_YELLOW);
  578. }
  579. case 4:
  580. {
  581. SetPlayerColor(PClick[playerid], COLOR_PINK);
  582. }
  583. case 5:
  584. {
  585. SetPlayerColor(PClick[playerid], COLOR_BROWN);
  586. }
  587. case 6:
  588. {
  589. SetPlayerColor(PClick[playerid], COLOR_ORANGE);
  590. }
  591. case 7:
  592. {
  593. SetPlayerColor(PClick[playerid], COLOR_PURPLE);
  594. }
  595. }
  596. }
  597. case 8596:
  598. {
  599. new value = strval(inputtext);
  600. if(value <= 0) value *= -1;
  601. GivePlayerMoney(PClick[playerid], value);
  602. SendClientMessage(playerid, COLOR_GREEN, "{91FF00}You '{FF003F}gave some cash' {91FF00}to the player");
  603. }
  604. case 4265:
  605. {
  606. new value = strval(inputtext);
  607. if(value <= 0) value *= -1;
  608. SetPlayerScore(PClick[playerid],GetPlayerScore(PClick[playerid])+value);
  609. SendClientMessage(playerid, COLOR_GREEN, "{91FF00}You '{FF003F}gave some score' {91FF00}to the {91FF00}player");
  610. }
  611. case 1745:
  612. {
  613.  
  614. new value = strval(inputtext);
  615. if(value <= 0) value *= -1;
  616. SetPlayerSkin(PClick[playerid], value);
  617. SendClientMessage(playerid, COLOR_GREEN, "{91FF00}You '{FF003F}have changed' {91FF00}the players {91FF00}skin");
  618. }
  619. case 1599:
  620. {
  621. new value = strval(inputtext);
  622. if(value <= 0) value *= -1;
  623. SetPlayerHealth(PClick[playerid], value);
  624. SendClientMessage(playerid, COLOR_GREEN, "{91FF00}You '{FF003F}have set the' {91FF00}players {91FF00}health");
  625. }
  626. case 1399:
  627. {
  628. new value = strval(inputtext);
  629. if(value <= 0) value *= -1;
  630. SetPlayerArmour(PClick[playerid], value);
  631. SendClientMessage(playerid, COLOR_GREEN, "{91FF00}You '{FF003F}have set' {91FF00}the players {91FF00}armour");
  632. }
  633. case 8777:
  634. {
  635. new str[128], pName[24], pNamee[24];
  636. GetPlayerName(PClick[playerid], pNamee, sizeof(pNamee));
  637. GetPlayerName(playerid, pName, sizeof(pName));
  638. format(str, sizeof(str), "Adminsitator ''%s'' Has Kicked %s (Reason: %s)", pName,pNamee ,inputtext);
  639. SendClientMessageToAll(COLOR_RED, str);
  640. Kick(PClick[playerid]);
  641. }
  642. case 8772:
  643. {
  644. new str[128], pName[24], pNamee[24];
  645. GetPlayerName(PClick[playerid], pNamee, sizeof(pNamee));
  646. GetPlayerName(playerid, pName, sizeof(pName));
  647. format(str, sizeof(str), "Adminsitator ''%s'' Has Ban %s (Reason: %s)", pName,pNamee, inputtext);
  648. SendClientMessageToAll(COLOR_RED, str);
  649. Ban(PClick[playerid]);
  650. }
  651. case 4888:
  652. {
  653. new value = strval(inputtext);
  654. if(value <= 0) value *= -1;
  655. SetPlayerScore(PClick[playerid], value);
  656. SendClientMessage(playerid, COLOR_GREEN, "{91FF00}You '{FF003F}have changed' {91FF00}the players {91FF00}score");
  657. }
  658. case 4887:
  659. {
  660. new value = strval(inputtext);
  661. if(value <= 0) value *= -1;
  662. SetPlayerMoney(playerid, value);
  663. SendClientMessage(playerid, COLOR_GREEN, "{91FF00}You '{FF003F}have changed' {91FF00}the players {91FF00}money");
  664. }
  665. }
  666. }
  667. }
  668.  
  669. stock SetPlayerMoney(playerid,amount)
  670. {
  671. ResetPlayerMoney(playerid);
  672. GivePlayerMoney(playerid, amount);
  673. return 1;
  674. }
Advertisement
Add Comment
Please, Sign In to add comment