Advertisement
Guest User

enum's are shit

a guest
Jan 20th, 2013
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.62 KB | None | 0 0
  1. // SA:MP Essentials
  2. // Scripted by scratch from Sellize
  3. // Credits to all include makers and helpers @ SA:MP forums!
  4. // Editing this script is not allowed
  5. // Neither is claiming it as your script
  6. // Started at 19 Januari 2013, 18:34
  7. // Ended at
  8.  
  9. #define FILTERSCRIPT
  10. #define MUTE
  11. #define COLOR_GREY 0xAFAFAFAA
  12. #define COLOR_GREEN 0x33AA33AA
  13. #define COLOR_RED 0xAA3333AA
  14. #define COLOR_YELLOW 0xFFFF00AA
  15. #define COLOR_WHITE 0xFFFFFFAA
  16. #define COLOR_BLUE 0x0000BBAA
  17. #define COLOR_LIGHTBLUE 0x33CCFFAA
  18. #define COLOR_ORANGE 0xFF9900AA
  19. #define COLOR_RED 0xAA3333AA
  20. #define COLOR_LIME 0x10F441AA
  21. #define COLOR_MAGENTA 0xFF00FFFF
  22. #define COLOR_NAVY 0x000080AA
  23. #define COLOR_AQUA 0xF0F8FFAA
  24. #define COLOR_CRIMSON 0xDC143CAA
  25. #define COLOR_FLBLUE 0x6495EDAA
  26. #define COLOR_BISQUE 0xFFE4C4AA
  27. #define COLOR_BLACK 0x000000AA
  28. #define COLOR_CHARTREUSE 0x7FFF00AA
  29. #define COLOR_BROWN 0XA52A2AAA
  30. #define COLOR_CORAL 0xFF7F50AA
  31. #define COLOR_GOLD 0xB8860BAA
  32. #define COLOR_GREENYELLOW 0xADFF2FAA
  33. #define COLOR_INDIGO 0x4B00B0AA
  34. #define COLOR_IVORY 0xFFFF82AA
  35. #define COLOR_LAWNGREEN 0x7CFC00AA
  36. #define COLOR_SEAGREEN 0x20B2AAAA
  37. #define COLOR_LIMEGREEN 0x32CD32AA
  38. #define COLOR_MIDNIGHTBLUE 0X191970AA
  39. #define COLOR_MAROON 0x800000AA
  40. #define COLOR_OLIVE 0x808000AA
  41. #define COLOR_ORANGERED 0xFF4500AA
  42. #define COLOR_PINK 0xFFC0CBAA
  43. #define COLOR_SPRINGGREEN 0x00FF7FAA
  44. #define COLOR_TOMATO 0xFF6347AA
  45. #define COLOR_YELLOWGREEN 0x9ACD32AA
  46. #define COLOR_MEDIUMAQUA 0x83BFBFAA
  47. #define COLOR_MEDIUMMAGENTA 0x8B008BAA
  48.  
  49. #include <a_samp>
  50. #include <zcmd>
  51. #include <sscanf2>
  52.  
  53. #if defined FILTERSCRIPT
  54.  
  55. enum PlayerInfo
  56. {
  57. isMuted,
  58. isJailed,
  59. }
  60.  
  61. new Info[MAX_PLAYERS][PlayerInfo];
  62.  
  63. public OnFilterScriptInit()
  64. {
  65. print("\n--------------------------------------");
  66. print(" ESSENTIALS LOADED CORRECTLY ");
  67. print("--------------------------------------\n");
  68. return 1;
  69. }
  70.  
  71. public OnFilterScriptExit()
  72. {
  73. return 1;
  74. }
  75.  
  76. #endif
  77.  
  78. public OnPlayerRequestClass(playerid, classid)
  79. {
  80. return 1;
  81. }
  82.  
  83. public OnPlayerConnect(playerid)
  84. {
  85. Info[playerid][isMuted] = 0;
  86. Info[playerid][isJailed] = 0;
  87. return 1;
  88. }
  89.  
  90. public OnPlayerDisconnect(playerid, reason)
  91. {
  92. return 1;
  93. }
  94.  
  95. public OnPlayerSpawn(playerid)
  96. {
  97. return 1;
  98. }
  99.  
  100. public OnPlayerDeath(playerid, killerid, reason)
  101. {
  102. return 1;
  103. }
  104.  
  105. public OnVehicleSpawn(vehicleid)
  106. {
  107. return 1;
  108. }
  109.  
  110. public OnVehicleDeath(vehicleid, killerid)
  111. {
  112. return 1;
  113. }
  114.  
  115. public OnPlayerText(playerid, text[])
  116. {
  117. return 1;
  118. }
  119.  
  120. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  121. {
  122. return 1;
  123. }
  124.  
  125. public OnPlayerExitVehicle(playerid, vehicleid)
  126. {
  127. return 1;
  128. }
  129.  
  130. public OnPlayerStateChange(playerid, newstate, oldstate)
  131. {
  132. return 1;
  133. }
  134.  
  135. public OnPlayerEnterCheckpoint(playerid)
  136. {
  137. return 1;
  138. }
  139.  
  140. public OnPlayerLeaveCheckpoint(playerid)
  141. {
  142. return 1;
  143. }
  144.  
  145. public OnPlayerEnterRaceCheckpoint(playerid)
  146. {
  147. return 1;
  148. }
  149.  
  150. public OnPlayerLeaveRaceCheckpoint(playerid)
  151. {
  152. return 1;
  153. }
  154.  
  155. public OnRconCommand(cmd[])
  156. {
  157. return 1;
  158. }
  159.  
  160. public OnPlayerRequestSpawn(playerid)
  161. {
  162. return 1;
  163. }
  164.  
  165. public OnObjectMoved(objectid)
  166. {
  167. return 1;
  168. }
  169.  
  170. public OnPlayerObjectMoved(playerid, objectid)
  171. {
  172. return 1;
  173. }
  174.  
  175. public OnPlayerPickUpPickup(playerid, pickupid)
  176. {
  177. return 1;
  178. }
  179.  
  180. public OnVehicleMod(playerid, vehicleid, componentid)
  181. {
  182. return 1;
  183. }
  184.  
  185. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
  186. {
  187. return 1;
  188. }
  189.  
  190. public OnVehicleRespray(playerid, vehicleid, color1, color2)
  191. {
  192. return 1;
  193. }
  194.  
  195. public OnPlayerSelectedMenuRow(playerid, row)
  196. {
  197. return 1;
  198. }
  199.  
  200. public OnPlayerCommandText(playerid, cmdtext[])
  201. {
  202. if(!strcmp(cmdtext, "/zZZZzzZZZZZzzDONOTREMOVETHIS", true))
  203. {
  204. SendClientMessage(playerid, 0xFFFFFFFF, "");
  205. return 1;
  206. }
  207. return 0;
  208. }
  209.  
  210. public OnPlayerExitedMenu(playerid)
  211. {
  212. return 1;
  213. }
  214.  
  215. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  216. {
  217. return 1;
  218. }
  219.  
  220. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  221. {
  222. return 1;
  223. }
  224.  
  225. public OnRconLoginAttempt(ip[], password[], success)
  226. {
  227. return 1;
  228. }
  229.  
  230. public OnPlayerUpdate(playerid)
  231. {
  232. return 1;
  233. }
  234.  
  235. public OnPlayerStreamIn(playerid, forplayerid)
  236. {
  237. return 1;
  238. }
  239.  
  240. public OnPlayerStreamOut(playerid, forplayerid)
  241. {
  242. return 1;
  243. }
  244.  
  245. public OnVehicleStreamIn(vehicleid, forplayerid)
  246. {
  247. return 1;
  248. }
  249.  
  250. public OnVehicleStreamOut(vehicleid, forplayerid)
  251. {
  252. return 1;
  253. }
  254.  
  255. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  256. {
  257. return 1;
  258. }
  259.  
  260. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  261. {
  262. return 1;
  263. }
  264.  
  265. CMD:mute(playerid, params[])
  266. {
  267. new targetid;
  268. new reason[128];
  269. new str[256];
  270. new AdminName[MAX_PLAYER_NAME];
  271. new Target[MAX_PLAYER_NAME];
  272. if(IsPlayerAdmin(playerid)) return SendClientMessage(playerid, COLOR_RED, "You aren't authorized to use this command!");
  273. if(sscanf(params, "us[128]", targetid, reason)) return SendClientMessage(playerid, COLOR_GREY, "Usage:/mute (playerid/partofname) (reason)");
  274. else if(targetid == INVALID_PLAYER_ID) SendClientMessage(playerid, COLOR_RED, "[{B4B5B7}System{FF6347}]: {B4B5B7}Player not found!");
  275. else
  276. {
  277. GetPlayerName(playerid, AdminName, sizeof(AdminName));
  278. GetPlayerName(targetid, Target, sizeof(Target));
  279. format(str, sizeof(str), "[{B4B5B7}Admin{FF6347}]{B4B5B7}'%s has muted {FF6347}[{B4B5B7}Player{FF6347}]{B4B5B7}'%s. {FF6347}Reason; {B4B5B7}%s .", AdminName, Target, reason);
  280. SendClientMessageToAll(COLOR_RED, str);
  281. PlayerInfo[targetid][isMuted] = 1;
  282. }
  283. return 1;
  284. }
  285.  
  286. COMMAND:jail(playerid, params[])
  287. {
  288. // Do something
  289. return 1;
  290. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement