Advertisement
Guest User

Nakki

a guest
Jan 4th, 2010
3,522
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.89 KB | None | 0 0
  1. // This is a comment
  2. // uncomment the line below if you want to write a filterscript
  3. //#define FILTERSCRIPT
  4.  
  5. #include <a_samp>
  6. #define COLOR_ORANGE 0xFF9900AA
  7. #define COLOR_ORED 0xFF0000FF
  8. #define COLOR_GRAD1 0xB4B5B7FF
  9. #define COLOR_GRAD2 0xBFC0C2FF
  10. #define COLOR_GRAD3 0xCBCCCEFF
  11. #define COLOR_GRAD4 0xD8D8D8FF
  12. #define COLOR_GRAD5 0xE3E3E3FF
  13. #define COLOR_GRAD6 0xF0F0F0FF
  14. #define COLOR_GREY 0xAFAFAFAA
  15. #define COLOR_GREEN 0x9EC73DAA
  16. #define COLOR_GROVE 0x00FF00FF
  17. #define COLOR_RED 0xAA3333AA
  18. #define COLOR_LIGHTRED 0xFF6347AA
  19. #define COLOR_LIGHTBLUE 0x33CCFFAA
  20. #define COLOR_LIGHTGREEN 0x9ACD32AA
  21. #define COLOR_YELLOW 0xDABB3EAA
  22. #define COLOR_YELLOW2 0xF5DEB3AA
  23. #define COLOR_WHITE 0xFFFFFFAA
  24. #define COLOR_FADE1 0xE6E6E6E6
  25. #define COLOR_FADE2 0xC8C8C8C8
  26. #define COLOR_FADE3 0xAAAAAAAA
  27. #define COLOR_FADE4 0x8C8C8C8C
  28. #define COLOR_FADE5 0x6E6E6E6E
  29. #define COLOR_PURPLE 0xC2A2DAAA
  30. #define COLOR_DBLUE 0x2641FEAA
  31. #define COLOR_ALLDEPT 0xFF8282AA
  32. #define COLOR_NEWS 0x458E1DAA
  33. #if defined FILTERSCRIPT
  34.  
  35. public OnFilterScriptInit()
  36. {
  37. print("\n--------------------------------------");
  38. print(" Nakkis Jail Command");
  39. print("--------------------------------------\n");
  40. return 1;
  41. }
  42.  
  43. public OnFilterScriptExit()
  44. {
  45. return 1;
  46. }
  47.  
  48. #else
  49.  
  50. main()
  51. {
  52. print("\n----------------------------------");
  53. print(" Blank Gamemode by your name here");
  54. print("----------------------------------\n");
  55. }
  56.  
  57. #endif
  58.  
  59. public OnGameModeInit()
  60. {
  61. // Don't use these lines if it's a filterscript
  62. SetGameModeText("Blank Script");
  63. AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
  64. return 1;
  65. }
  66.  
  67. public OnGameModeExit()
  68. {
  69. return 1;
  70. }
  71.  
  72. public OnPlayerRequestClass(playerid, classid)
  73. {
  74. SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
  75. SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
  76. SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
  77. return 1;
  78. }
  79.  
  80. public OnPlayerConnect(playerid)
  81. {
  82. return 1;
  83. }
  84.  
  85. public OnPlayerDisconnect(playerid, reason)
  86. {
  87. return 1;
  88. }
  89.  
  90. public OnPlayerSpawn(playerid)
  91. {
  92. return 1;
  93. }
  94.  
  95. public OnPlayerDeath(playerid, killerid, reason)
  96. {
  97. return 1;
  98. }
  99.  
  100. public OnVehicleSpawn(vehicleid)
  101. {
  102. return 1;
  103. }
  104.  
  105. public OnVehicleDeath(vehicleid, killerid)
  106. {
  107. return 1;
  108. }
  109.  
  110. public OnPlayerText(playerid, text[])
  111. {
  112. return 1;
  113. }
  114.  
  115. public OnPlayerCommandText(playerid, cmdtext[])
  116. {
  117. if(!strcmp(cmdtext, "/jail", true, 5))
  118. {
  119. if (IsPlayerAdmin(playerid))
  120. {
  121. if(!strlen(cmdtext[6]))
  122. {
  123. SendClientMessage(playerid, COLOR_ORED, "Usage: /jail [playerid]");
  124. return 1;
  125. }
  126. new ID = strval(cmdtext[6]);
  127. new strv[170];
  128. if(IsPlayerConnected(ID))
  129. {
  130. format(strv, 170, "~ You have been jailed");
  131. SendClientMessage(ID,COLOR_ORANGE, strv);
  132. SetPlayerPos(ID, 264.8763,81.9862,1001.0390);
  133. SetPlayerInterior(ID, 6);
  134. }
  135. }
  136. return SendClientMessage(playerid, COLOR_RED, "Your not rcon admin!");
  137. }
  138. return 0;
  139. }
  140.  
  141. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  142. {
  143. return 1;
  144. }
  145.  
  146. public OnPlayerExitVehicle(playerid, vehicleid)
  147. {
  148. return 1;
  149. }
  150.  
  151. public OnPlayerStateChange(playerid, newstate, oldstate)
  152. {
  153. return 1;
  154. }
  155.  
  156. public OnPlayerEnterCheckpoint(playerid)
  157. {
  158. return 1;
  159. }
  160.  
  161. public OnPlayerLeaveCheckpoint(playerid)
  162. {
  163. return 1;
  164. }
  165.  
  166. public OnPlayerEnterRaceCheckpoint(playerid)
  167. {
  168. return 1;
  169. }
  170.  
  171. public OnPlayerLeaveRaceCheckpoint(playerid)
  172. {
  173. return 1;
  174. }
  175.  
  176. public OnRconCommand(cmd[])
  177. {
  178.  
  179. return 1;
  180. }
  181.  
  182. public OnPlayerRequestSpawn(playerid)
  183. {
  184. return 1;
  185. }
  186.  
  187. public OnObjectMoved(objectid)
  188. {
  189. return 1;
  190. }
  191.  
  192. public OnPlayerObjectMoved(playerid, objectid)
  193. {
  194. return 1;
  195. }
  196.  
  197. public OnPlayerPickUpPickup(playerid, pickupid)
  198. {
  199. return 1;
  200. }
  201.  
  202. public OnVehicleMod(playerid, vehicleid, componentid)
  203. {
  204. return 1;
  205. }
  206.  
  207. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
  208. {
  209. return 1;
  210. }
  211.  
  212. public OnVehicleRespray(playerid, vehicleid, color1, color2)
  213. {
  214. return 1;
  215. }
  216.  
  217. public OnPlayerSelectedMenuRow(playerid, row)
  218. {
  219. return 1;
  220. }
  221.  
  222. public OnPlayerExitedMenu(playerid)
  223. {
  224. return 1;
  225. }
  226.  
  227. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  228. {
  229. return 1;
  230. }
  231.  
  232. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  233. {
  234. return 1;
  235. }
  236.  
  237. public OnRconLoginAttempt(ip[], password[], success)
  238. {
  239. return 1;
  240. }
  241.  
  242. public OnPlayerUpdate(playerid)
  243. {
  244. return 1;
  245. }
  246.  
  247. public OnPlayerStreamIn(playerid, forplayerid)
  248. {
  249. return 1;
  250. }
  251.  
  252. public OnPlayerStreamOut(playerid, forplayerid)
  253. {
  254. return 1;
  255. }
  256.  
  257. public OnVehicleStreamIn(vehicleid, forplayerid)
  258. {
  259. return 1;
  260. }
  261.  
  262. public OnVehicleStreamOut(vehicleid, forplayerid)
  263. {
  264. return 1;
  265. }
  266.  
  267. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  268. {
  269. return 1;
  270. }
  271.  
  272. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  273. {
  274. return 1;
  275. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement