Cubie_

Scripting #2

Mar 23rd, 2018
4,900
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.20 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. #include <zcmd>
  7. #include <sscanf2>
  8.  
  9. #define COLOR_WHITE (0xffffffFF)
  10. #define COLOR_RED (0xdb1a1aFF)
  11. #define COLOR_BLUE (0x2265d8FF)
  12. #define COLOR_YELLOW (0xf6ff00FF)
  13.  
  14. #define SCM SendClientMessage
  15.  
  16. main()
  17. {
  18. print("\n-------------------------------------");
  19. print("This is the sick script we are making");
  20. print("---------------------------------------\n");
  21. }
  22.  
  23. public OnGameModeInit()
  24. {
  25. // Don't use these lines if it's a filterscript
  26. SetGameModeText("Blank Script");
  27. AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
  28. return 1;
  29. }
  30.  
  31. public OnGameModeExit()
  32. {
  33. return 1;
  34. }
  35.  
  36. public OnPlayerRequestClass(playerid, classid)
  37. {
  38. SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
  39. SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
  40. SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
  41. return 1;
  42. }
  43.  
  44. public OnPlayerConnect(playerid)
  45. {
  46. return 1;
  47. }
  48.  
  49. public OnPlayerDisconnect(playerid, reason)
  50. {
  51. return 1;
  52. }
  53.  
  54. public OnPlayerSpawn(playerid)
  55. {
  56. return 1;
  57. }
  58.  
  59. public OnPlayerDeath(playerid, killerid, reason)
  60. {
  61. return 1;
  62. }
  63.  
  64. public OnVehicleSpawn(vehicleid)
  65. {
  66. return 1;
  67. }
  68.  
  69. public OnVehicleDeath(vehicleid, killerid)
  70. {
  71. return 1;
  72. }
  73.  
  74. public OnPlayerText(playerid, text[])
  75. {
  76. return 1;
  77. }
  78.  
  79. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  80. {
  81. return 1;
  82. }
  83.  
  84. public OnPlayerExitVehicle(playerid, vehicleid)
  85. {
  86. return 1;
  87. }
  88.  
  89. public OnPlayerStateChange(playerid, newstate, oldstate)
  90. {
  91. return 1;
  92. }
  93.  
  94. public OnPlayerEnterCheckpoint(playerid)
  95. {
  96. return 1;
  97. }
  98.  
  99. public OnPlayerLeaveCheckpoint(playerid)
  100. {
  101. return 1;
  102. }
  103.  
  104. public OnPlayerEnterRaceCheckpoint(playerid)
  105. {
  106. return 1;
  107. }
  108.  
  109. public OnPlayerLeaveRaceCheckpoint(playerid)
  110. {
  111. return 1;
  112. }
  113.  
  114. public OnRconCommand(cmd[])
  115. {
  116. return 1;
  117. }
  118.  
  119. public OnPlayerRequestSpawn(playerid)
  120. {
  121. return 1;
  122. }
  123.  
  124. public OnObjectMoved(objectid)
  125. {
  126. return 1;
  127. }
  128.  
  129. public OnPlayerObjectMoved(playerid, objectid)
  130. {
  131. return 1;
  132. }
  133.  
  134. public OnPlayerPickUpPickup(playerid, pickupid)
  135. {
  136. return 1;
  137. }
  138.  
  139. public OnVehicleMod(playerid, vehicleid, componentid)
  140. {
  141. return 1;
  142. }
  143.  
  144. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
  145. {
  146. return 1;
  147. }
  148.  
  149. public OnVehicleRespray(playerid, vehicleid, color1, color2)
  150. {
  151. return 1;
  152. }
  153.  
  154. public OnPlayerSelectedMenuRow(playerid, row)
  155. {
  156. return 1;
  157. }
  158.  
  159. public OnPlayerExitedMenu(playerid)
  160. {
  161. return 1;
  162. }
  163.  
  164. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  165. {
  166. return 1;
  167. }
  168.  
  169. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  170. {
  171. return 1;
  172. }
  173.  
  174. public OnRconLoginAttempt(ip[], password[], success)
  175. {
  176. return 1;
  177. }
  178.  
  179. public OnPlayerUpdate(playerid)
  180. {
  181. return 1;
  182. }
  183.  
  184. public OnPlayerStreamIn(playerid, forplayerid)
  185. {
  186. return 1;
  187. }
  188.  
  189. public OnPlayerStreamOut(playerid, forplayerid)
  190. {
  191. return 1;
  192. }
  193.  
  194. public OnVehicleStreamIn(vehicleid, forplayerid)
  195. {
  196. return 1;
  197. }
  198.  
  199. public OnVehicleStreamOut(vehicleid, forplayerid)
  200. {
  201. return 1;
  202. }
  203.  
  204. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  205. {
  206. return 1;
  207. }
  208.  
  209. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  210. {
  211. return 1;
  212. }
  213.  
  214. CMD:jetpack(playerid, params[])
  215. {
  216. SetPlayerSpecialAction(playerid,SPECIAL_ACTION_USEJETPACK);
  217. return 1;
  218. }
  219.  
  220. CMD:kill(playerid, params[])
  221. {
  222. SetPlayerHealth(playerid, 0);
  223. return 1;
  224. }
  225.  
  226. CMD:skin(playerid, params[])
  227. {
  228. new skinid;
  229.  
  230. if(sscanf(params, "i", skinid))
  231. return SCM(playerid, COLOR_RED, "Usage: /skin [ID]");
  232.  
  233. SetPlayerSkin(playerid, skinid);
  234.  
  235. return 1;
  236. }
  237.  
  238. CMD:weapon(playerid, params[])
  239. {
  240. new weaponid, ammo;
  241.  
  242. if(sscanf(params, "ii", weaponid, ammo))
  243. return SCM(playerid, COLOR_RED, "Usage: /weapon [ID], [AMMO]");
  244.  
  245. if(weaponid < 1 || weaponid > 46 || weaponid == 18)
  246. return SCM(playerid, COLOR_RED, "You have specified a invalid weapon");
  247.  
  248. if(ammo < 1)
  249. return SCM(playerid, COLOR_RED, "You have specified invalid ammo amount");
  250.  
  251. GivePlayerWeapon(playerid, weaponid, ammo);
  252.  
  253. SCM(playerid, COLOR_YELLOW, "Enjoy your Weapon, prick");
  254.  
  255. return 1;
  256. }
Advertisement
Add Comment
Please, Sign In to add comment