Cubie_

Scripting #3

Apr 4th, 2018
2,390
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.61 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. for(new skinid = 0; skinid < 299; skinid++)
  28. if(BannedSkins(skinid))
  29. {
  30. AddPlayerClass(skinid,2098.5088,1159.1156,11.6484,61.0253,0,0,0,0,0,0);
  31. }
  32. return 1;
  33. }
  34.  
  35. public OnGameModeExit()
  36. {
  37. return 1;
  38. }
  39.  
  40. public OnPlayerRequestClass(playerid, classid)
  41. {
  42. SetPlayerPos(playerid, 2172.7307,1081.5670,85.9312);
  43. SetPlayerFacingAngle(playerid, 198.4185);
  44. SetPlayerCameraPos(playerid, 2176.0220, 1073.1537, 87.6404);
  45. SetPlayerCameraLookAt(playerid, 2175.6555, 1074.0881, 87.5704);
  46. return 1;
  47. }
  48.  
  49. public OnPlayerConnect(playerid)
  50. {
  51. return 1;
  52. }
  53.  
  54. public OnPlayerDisconnect(playerid, reason)
  55. {
  56. return 1;
  57. }
  58.  
  59. public OnPlayerSpawn(playerid)
  60. {
  61. return 1;
  62. }
  63.  
  64. public OnPlayerDeath(playerid, killerid, reason)
  65. {
  66. return 1;
  67. }
  68.  
  69. public OnVehicleSpawn(vehicleid)
  70. {
  71. return 1;
  72. }
  73.  
  74. public OnVehicleDeath(vehicleid, killerid)
  75. {
  76. return 1;
  77. }
  78.  
  79. public OnPlayerText(playerid, text[])
  80. {
  81. return 1;
  82. }
  83.  
  84. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  85. {
  86. return 1;
  87. }
  88.  
  89. public OnPlayerExitVehicle(playerid, vehicleid)
  90. {
  91. return 1;
  92. }
  93.  
  94. public OnPlayerStateChange(playerid, newstate, oldstate)
  95. {
  96. return 1;
  97. }
  98.  
  99. public OnPlayerEnterCheckpoint(playerid)
  100. {
  101. return 1;
  102. }
  103.  
  104. public OnPlayerLeaveCheckpoint(playerid)
  105. {
  106. return 1;
  107. }
  108.  
  109. public OnPlayerEnterRaceCheckpoint(playerid)
  110. {
  111. return 1;
  112. }
  113.  
  114. public OnPlayerLeaveRaceCheckpoint(playerid)
  115. {
  116. return 1;
  117. }
  118.  
  119. public OnRconCommand(cmd[])
  120. {
  121. return 1;
  122. }
  123.  
  124. public OnPlayerRequestSpawn(playerid)
  125. {
  126. return 1;
  127. }
  128.  
  129. public OnObjectMoved(objectid)
  130. {
  131. return 1;
  132. }
  133.  
  134. public OnPlayerObjectMoved(playerid, objectid)
  135. {
  136. return 1;
  137. }
  138.  
  139. public OnPlayerPickUpPickup(playerid, pickupid)
  140. {
  141. return 1;
  142. }
  143.  
  144. public OnVehicleMod(playerid, vehicleid, componentid)
  145. {
  146. return 1;
  147. }
  148.  
  149. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
  150. {
  151. return 1;
  152. }
  153.  
  154. public OnVehicleRespray(playerid, vehicleid, color1, color2)
  155. {
  156. return 1;
  157. }
  158.  
  159. public OnPlayerSelectedMenuRow(playerid, row)
  160. {
  161. return 1;
  162. }
  163.  
  164. public OnPlayerExitedMenu(playerid)
  165. {
  166. return 1;
  167. }
  168.  
  169. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  170. {
  171. return 1;
  172. }
  173.  
  174. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  175. {
  176. return 1;
  177. }
  178.  
  179. public OnRconLoginAttempt(ip[], password[], success)
  180. {
  181. return 1;
  182. }
  183.  
  184. public OnPlayerUpdate(playerid)
  185. {
  186. return 1;
  187. }
  188.  
  189. public OnPlayerStreamIn(playerid, forplayerid)
  190. {
  191. return 1;
  192. }
  193.  
  194. public OnPlayerStreamOut(playerid, forplayerid)
  195. {
  196. return 1;
  197. }
  198.  
  199. public OnVehicleStreamIn(vehicleid, forplayerid)
  200. {
  201. return 1;
  202. }
  203.  
  204. public OnVehicleStreamOut(vehicleid, forplayerid)
  205. {
  206. return 1;
  207. }
  208.  
  209. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  210. {
  211. return 1;
  212. }
  213.  
  214. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  215. {
  216. return 1;
  217. }
  218.  
  219. // Commnands
  220.  
  221. CMD:jetpack(playerid, params[])
  222. {
  223. SetPlayerSpecialAction(playerid,SPECIAL_ACTION_USEJETPACK);
  224. return 1;
  225. }
  226.  
  227. CMD:kill(playerid, params[])
  228. {
  229. SetPlayerHealth(playerid, 0);
  230. return 1;
  231. }
  232.  
  233. CMD:skin(playerid, params[])
  234. {
  235. new skinid;
  236.  
  237. if(sscanf(params, "i", skinid))
  238. return SCM(playerid, COLOR_RED, "Usage: /skin [ID]");
  239.  
  240. SetPlayerSkin(playerid, skinid);
  241.  
  242. return 1;
  243. }
  244.  
  245. CMD:weapon(playerid, params[])
  246. {
  247. new weaponid, ammo;
  248.  
  249. if(sscanf(params, "ii", weaponid, ammo))
  250. return SCM(playerid, COLOR_RED, "Usage: /weapon [ID], [AMMO]");
  251.  
  252. if(weaponid < 1 || weaponid > 46 || weaponid == 18)
  253. return SCM(playerid, COLOR_RED, "You have specified a invalid weapon");
  254.  
  255. if(ammo < 1)
  256. return SCM(playerid, COLOR_RED, "You have specified invalid ammo amount");
  257.  
  258. GivePlayerWeapon(playerid, weaponid, ammo);
  259.  
  260. SCM(playerid, COLOR_YELLOW, "Enjoy your Weapon, prick");
  261.  
  262. return 1;
  263. }
  264.  
  265. CMD:gotols(playerid, params[])
  266. {
  267. SetPlayerPos(playerid, 1519.6636, -1679.0535, 12.8015);
  268. return 1;
  269. }
  270.  
  271. // Stock Values
  272.  
  273. stock BannedSkins(skinid)
  274. {
  275. if(skinid < 0 || skinid > 299) return 0;
  276. switch(skinid)
  277. {
  278. case 267, 67, 0, 45: return 0;
  279. }
  280. return 1;
  281. }
Advertisement
Add Comment
Please, Sign In to add comment