Advertisement
Guest User

Untitled

a guest
Jul 3rd, 2012
265
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.  
  8. #if defined FILTERSCRIPT
  9.  
  10. public OnFilterScriptInit()
  11. {
  12.     print("\n--------------------------------------");
  13.     print(" FIX YOUR VEHICLE SCRIPT");
  14.     print("--------------------------------------\n");
  15.     return 1;
  16. }
  17.  
  18. public OnFilterScriptExit()
  19. {
  20.     return 1;
  21. }
  22.  
  23. #else
  24.  
  25. main()
  26. {
  27.     print("\n----------------------------------");
  28.     print(" FIX YOUR VEHICLE SCRIPT");
  29.     print("----------------------------------\n");
  30. }
  31.  
  32. #endif
  33.  
  34. public OnGameModeInit()
  35. {
  36.     // Don't use these lines if it's a filterscript
  37.     SetGameModeText("Fix Vehicle v1.0");
  38.     AddPlayerClass(299, 1365.3715, -1278.3698, 13.5469, 84.7843, 0, 0, 0, 0, 0, 0);
  39.     AddStaticVehicle(411, 1361.6104, -1278.8152, 13.1115,179.7725, 1, 1);
  40.     return 1;
  41. }
  42.  
  43. public OnGameModeExit()
  44. {
  45.     return 1;
  46. }
  47.  
  48. public OnPlayerRequestClass(playerid, classid)
  49. {
  50.     return 1;
  51. }
  52.  
  53. public OnPlayerConnect(playerid)
  54. {
  55.     return 1;
  56. }
  57.  
  58. public OnPlayerDisconnect(playerid, reason)
  59. {
  60.     return 1;
  61. }
  62.  
  63. public OnPlayerSpawn(playerid)
  64. {
  65.     return 1;
  66. }
  67.  
  68. public OnPlayerDeath(playerid, killerid, reason)
  69. {
  70.     return 1;
  71. }
  72.  
  73. public OnVehicleSpawn(vehicleid)
  74. {
  75.     return 1;
  76. }
  77.  
  78. public OnVehicleDeath(vehicleid, killerid)
  79. {
  80.     return 1;
  81. }
  82.  
  83. public OnPlayerText(playerid, text[])
  84. {
  85.     return 1;
  86. }
  87.  
  88. public OnPlayerCommandText(playerid, cmdtext[])
  89. {
  90.     if (strcmp("/mycommand", cmdtext, true, 10) == 0)
  91.     {
  92.         // Do something here
  93.         return 1;
  94.     }
  95.     return 0;
  96. }
  97.  
  98. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  99. {
  100.     return 1;
  101. }
  102.  
  103. public OnPlayerExitVehicle(playerid, vehicleid)
  104. {
  105.     return 1;
  106. }
  107.  
  108. public OnPlayerStateChange(playerid, newstate, oldstate)
  109. {
  110.     return 1;
  111. }
  112.  
  113. public OnPlayerEnterCheckpoint(playerid)
  114. {
  115.     return 1;
  116. }
  117.  
  118. public OnPlayerLeaveCheckpoint(playerid)
  119. {
  120.     return 1;
  121. }
  122.  
  123. public OnPlayerEnterRaceCheckpoint(playerid)
  124. {
  125.     return 1;
  126. }
  127.  
  128. public OnPlayerLeaveRaceCheckpoint(playerid)
  129. {
  130.     return 1;
  131. }
  132.  
  133. public OnRconCommand(cmd[])
  134. {
  135.     return 1;
  136. }
  137.  
  138. public OnPlayerRequestSpawn(playerid)
  139. {
  140.     return 1;
  141. }
  142.  
  143. public OnObjectMoved(objectid)
  144. {
  145.     return 1;
  146. }
  147.  
  148. public OnPlayerObjectMoved(playerid, objectid)
  149. {
  150.     return 1;
  151. }
  152.  
  153. public OnPlayerPickUpPickup(playerid, pickupid)
  154. {
  155.     return 1;
  156. }
  157.  
  158. public OnVehicleMod(playerid, vehicleid, componentid)
  159. {
  160.     return 1;
  161. }
  162.  
  163. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
  164. {
  165.     return 1;
  166. }
  167.  
  168. public OnVehicleRespray(playerid, vehicleid, color1, color2)
  169. {
  170.     return 1;
  171. }
  172.  
  173. public OnPlayerSelectedMenuRow(playerid, row)
  174. {
  175.     return 1;
  176. }
  177.  
  178. public OnPlayerExitedMenu(playerid)
  179. {
  180.     return 1;
  181. }
  182.  
  183. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  184. {
  185.     return 1;
  186. }
  187.  
  188. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  189. {
  190.     return 1;
  191. }
  192.  
  193. public OnRconLoginAttempt(ip[], password[], success)
  194. {
  195.     return 1;
  196. }
  197.  
  198. public OnPlayerUpdate(playerid)
  199. {
  200.     return 1;
  201. }
  202.  
  203. public OnPlayerStreamIn(playerid, forplayerid)
  204. {
  205.     return 1;
  206. }
  207.  
  208. public OnPlayerStreamOut(playerid, forplayerid)
  209. {
  210.     return 1;
  211. }
  212.  
  213. public OnVehicleStreamIn(vehicleid, forplayerid)
  214. {
  215.     return 1;
  216. }
  217.  
  218. public OnVehicleStreamOut(vehicleid, forplayerid)
  219. {
  220.     return 1;
  221. }
  222.  
  223. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  224. {
  225.     return 1;
  226. }
  227.  
  228. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  229. {
  230.     return 1;
  231. }
  232.  
  233. CMD:repair(playerid, params[])
  234. {
  235.     if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, -1, "You are not in a vehicle!");
  236.     if(GetPlayerState(playerid) != 2) return SendClientMessage(playerid, -1, "You are not in the driver seat!");
  237.     RepairVehicle(GetPlayerVehicleID(playerid));
  238.     SendClientMessage(playerid, -1, "Your vehicle has been sucessfully repaired!");
  239.     PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
  240.     return 1;
  241. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement