Guest User

Smokebomb filterscript by [Twixx]

a guest
Jul 26th, 2012
229
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 3.71 KB | None | 0 0
  1. // Smokebomb filterscript by [Twixx]!
  2. // uncomment the line below if you want to write a filterscript
  3. //#define FILTERSCRIPT
  4.  
  5. #include <a_samp>
  6.  
  7. #if defined FILTERSCRIPT
  8.  
  9. public OnFilterScriptInit()
  10. {
  11.     print("\n--------------------------------------");
  12.     print(" Smokebomb filterscript by [Twixx]");
  13.     print("--------------------------------------\n");
  14.     return 1;
  15. }
  16.  
  17. public OnFilterScriptExit()
  18. {
  19.     return 1;
  20. }
  21.  
  22. #else
  23.  
  24. main()
  25. {
  26.     print("\n----------------------------------");
  27.     print(" Blank Gamemode by your name here");
  28.     print("----------------------------------\n");
  29. }
  30.  
  31. #endif
  32.  
  33. public OnGameModeInit()
  34. {
  35.     // Don't use these lines if it's a filterscript
  36.     SetGameModeText("Blank Script");
  37.     AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
  38.     return 1;
  39. }
  40.  
  41. public OnGameModeExit()
  42. {
  43.     return 1;
  44. }
  45.  
  46. public OnPlayerRequestClass(playerid, classid)
  47. {
  48.     SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
  49.     SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
  50.     SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
  51.     return 1;
  52. }
  53.  
  54. public OnPlayerConnect(playerid)
  55. {
  56.     return 1;
  57. }
  58.  
  59. public OnPlayerDisconnect(playerid, reason)
  60. {
  61.     return 1;
  62. }
  63.  
  64. public OnPlayerSpawn(playerid)
  65. {
  66.     return 1;
  67. }
  68.  
  69. public OnPlayerDeath(playerid, killerid, reason)
  70. {
  71.     return 1;
  72. }
  73.  
  74. public OnVehicleSpawn(vehicleid)
  75. {
  76.     return 1;
  77. }
  78.  
  79. public OnVehicleDeath(vehicleid, killerid)
  80. {
  81.     return 1;
  82. }
  83.  
  84. public OnPlayerText(playerid, text[])
  85. {
  86.     return 1;
  87. }
  88.  
  89. public OnPlayerCommandText(playerid, cmdtext[])
  90. {
  91.     if(!strcmp(cmdtext, "/smokebomb", true))
  92.     {
  93.         SendClientMessage(playerid, 0xFFFFFFFF, "You planted a smokebomb!");
  94.         new Float:x, Float:y, Float:z;
  95.         GetPlayerPos(playerid, x, y, z);
  96.         CreateObject(18715, x, y, z, 0, 0, 0, 250.0);
  97.         return 1;
  98.     }
  99.     return 0;
  100. }
  101.  
  102. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  103. {
  104.     return 1;
  105. }
  106.  
  107. public OnPlayerExitVehicle(playerid, vehicleid)
  108. {
  109.     return 1;
  110. }
  111.  
  112. public OnPlayerStateChange(playerid, newstate, oldstate)
  113. {
  114.     return 1;
  115. }
  116.  
  117. public OnPlayerEnterCheckpoint(playerid)
  118. {
  119.     return 1;
  120. }
  121.  
  122. public OnPlayerLeaveCheckpoint(playerid)
  123. {
  124.     return 1;
  125. }
  126.  
  127. public OnPlayerEnterRaceCheckpoint(playerid)
  128. {
  129.     return 1;
  130. }
  131.  
  132. public OnPlayerLeaveRaceCheckpoint(playerid)
  133. {
  134.     return 1;
  135. }
  136.  
  137. public OnRconCommand(cmd[])
  138. {
  139.     return 1;
  140. }
  141.  
  142. public OnPlayerRequestSpawn(playerid)
  143. {
  144.     return 1;
  145. }
  146.  
  147. public OnObjectMoved(objectid)
  148. {
  149.     return 1;
  150. }
  151.  
  152. public OnPlayerObjectMoved(playerid, objectid)
  153. {
  154.     return 1;
  155. }
  156.  
  157. public OnPlayerPickUpPickup(playerid, pickupid)
  158. {
  159.     return 1;
  160. }
  161.  
  162. public OnVehicleMod(playerid, vehicleid, componentid)
  163. {
  164.     return 1;
  165. }
  166.  
  167. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
  168. {
  169.     return 1;
  170. }
  171.  
  172. public OnVehicleRespray(playerid, vehicleid, color1, color2)
  173. {
  174.     return 1;
  175. }
  176.  
  177. public OnPlayerSelectedMenuRow(playerid, row)
  178. {
  179.     return 1;
  180. }
  181.  
  182. public OnPlayerExitedMenu(playerid)
  183. {
  184.     return 1;
  185. }
  186.  
  187. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  188. {
  189.     return 1;
  190. }
  191.  
  192. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  193. {
  194.     return 1;
  195. }
  196.  
  197. public OnRconLoginAttempt(ip[], password[], success)
  198. {
  199.     return 1;
  200. }
  201.  
  202. public OnPlayerUpdate(playerid)
  203. {
  204.     return 1;
  205. }
  206.  
  207. public OnPlayerStreamIn(playerid, forplayerid)
  208. {
  209.     return 1;
  210. }
  211.  
  212. public OnPlayerStreamOut(playerid, forplayerid)
  213. {
  214.     return 1;
  215. }
  216.  
  217. public OnVehicleStreamIn(vehicleid, forplayerid)
  218. {
  219.     return 1;
  220. }
  221.  
  222. public OnVehicleStreamOut(vehicleid, forplayerid)
  223. {
  224.     return 1;
  225. }
  226.  
  227. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  228. {
  229.     return 1;
  230. }
  231.  
  232. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  233. {
  234.     return 1;
  235. }
Advertisement
Add Comment
Please, Sign In to add comment