Advertisement
Guest User

fixeds

a guest
Jan 20th, 2013
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.50 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. #include <a_samp>
  10. #include <zcmd>
  11. #include <sscanf2>
  12.  
  13.  
  14. #define FILTERSCRIPT
  15. #define MUTE
  16. #define COLOR_GREY 0xAFAFAFAA
  17. #define COLOR_GREEN 0x33AA33AA
  18. #define COLOR_RED 0xAA3333AA
  19. #define COLOR_YELLOW 0xFFFF00AA
  20. #define COLOR_WHITE 0xFFFFFFAA
  21. #define COLOR_BLUE 0x0000BBAA
  22. #define COLOR_LIGHTBLUE 0x33CCFFAA
  23. #define COLOR_ORANGE 0xFF9900AA
  24. #define COLOR_RED 0xAA3333AA
  25. #define COLOR_LIME 0x10F441AA
  26. #define COLOR_MAGENTA 0xFF00FFFF
  27. #define COLOR_NAVY 0x000080AA
  28. #define COLOR_AQUA 0xF0F8FFAA
  29. #define COLOR_CRIMSON 0xDC143CAA
  30. #define COLOR_FLBLUE 0x6495EDAA
  31. #define COLOR_BISQUE 0xFFE4C4AA
  32. #define COLOR_BLACK 0x000000AA
  33. #define COLOR_CHARTREUSE 0x7FFF00AA
  34. #define COLOR_BROWN 0XA52A2AAA
  35. #define COLOR_CORAL 0xFF7F50AA
  36. #define COLOR_GOLD 0xB8860BAA
  37. #define COLOR_GREENYELLOW 0xADFF2FAA
  38. #define COLOR_INDIGO 0x4B00B0AA
  39. #define COLOR_IVORY 0xFFFF82AA
  40. #define COLOR_LAWNGREEN 0x7CFC00AA
  41. #define COLOR_SEAGREEN 0x20B2AAAA
  42. #define COLOR_LIMEGREEN 0x32CD32AA
  43. #define COLOR_MIDNIGHTBLUE 0X191970AA
  44. #define COLOR_MAROON 0x800000AA
  45. #define COLOR_OLIVE 0x808000AA
  46. #define COLOR_ORANGERED 0xFF4500AA
  47. #define COLOR_PINK 0xFFC0CBAA
  48. #define COLOR_SPRINGGREEN 0x00FF7FAA
  49. #define COLOR_TOMATO 0xFF6347AA
  50. #define COLOR_YELLOWGREEN 0x9ACD32AA
  51. #define COLOR_MEDIUMAQUA 0x83BFBFAA
  52. #define COLOR_MEDIUMMAGENTA 0x8B008BAA
  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 OnPlayerExitedMenu(playerid)
  201. {
  202. return 1;
  203. }
  204.  
  205. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  206. {
  207. return 1;
  208. }
  209.  
  210. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  211. {
  212. return 1;
  213. }
  214.  
  215. public OnRconLoginAttempt(ip[], password[], success)
  216. {
  217. return 1;
  218. }
  219.  
  220. public OnPlayerUpdate(playerid)
  221. {
  222. return 1;
  223. }
  224.  
  225. public OnPlayerStreamIn(playerid, forplayerid)
  226. {
  227. return 1;
  228. }
  229.  
  230. public OnPlayerStreamOut(playerid, forplayerid)
  231. {
  232. return 1;
  233. }
  234.  
  235. public OnVehicleStreamIn(vehicleid, forplayerid)
  236. {
  237. return 1;
  238. }
  239.  
  240. public OnVehicleStreamOut(vehicleid, forplayerid)
  241. {
  242. return 1;
  243. }
  244.  
  245. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  246. {
  247. return 1;
  248. }
  249.  
  250. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  251. {
  252. return 1;
  253. }
  254.  
  255. CMD:mute(playerid, params[])
  256. {
  257. #if defined mute
  258. new targetid;
  259. new reason[128];
  260. new str[256];
  261. new AdminName[MAX_PLAYER_NAME];
  262. new Target[MAX_PLAYER_NAME];
  263. if(IsPlayerAdmin(playerid)) return SendClientMessage(playerid, COLOR_RED, "You aren't authorized to use this command!");
  264. if(sscanf(params, "us[128]", targetid, reason)) return SendClientMessage(playerid, COLOR_GREY, "Usage:/mute (playerid/partofname) (reason)");
  265. else if(targetid == INVALID_PLAYER_ID) SendClientMessage(playerid, COLOR_RED, "[{B4B5B7}System{FF6347}]: {B4B5B7}Player not found!");
  266. else
  267. {
  268. GetPlayerName(playerid, AdminName, sizeof(AdminName));
  269. GetPlayerName(targetid, Target, sizeof(Target));
  270. format(str, sizeof(str), "[{B4B5B7}Admin{FF6347}]{B4B5B7}'%s has muted {FF6347}[{B4B5B7}Player{FF6347}]{B4B5B7}'%s. {FF6347}Reason; {B4B5B7}%s .", AdminName, targetid, reason);
  271. SendClientMessageToAll(COLOR_RED, str);
  272. Info[targetid][isMuted] = 1;
  273. }
  274. #else
  275. SendClientMessage(playerid, COLOR_RED, "This command is disabled!");
  276. #endif
  277. return 1;
  278. }
  279.  
  280. COMMAND:jail(playerid, params[])
  281. {
  282. // Do something
  283. return 1;
  284. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement