Advertisement
bgtracker

Moving Gates

May 18th, 2012
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 3.65 KB | None | 0 0
  1. #include <a_samp>
  2.  
  3. #define COLOR_BRIGHTRED 0xFF0000AA
  4.  
  5. new Gate; // Assign variable so we can move, remove, edit, add gate
  6.  
  7. public OnFilterScriptInit()
  8. {
  9.     Gate = CreateObject(987,-2573.00000000,922.70001221,64.00000000,0.00000000,0.00000000,0.00000000); // Put your CLOSED gate coordinates here
  10.     print("\n--------------------------------------");
  11.     print(" Gate by Bgtracker");
  12.     print("--------------------------------------\n");
  13.     return 1;
  14. }
  15.  
  16. public OnFilterScriptExit()
  17. {
  18.     return 1;
  19. }
  20.  
  21. public OnPlayerRequestClass(playerid, classid)
  22. {
  23.     SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
  24.     SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
  25.     SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
  26.     return 1;
  27. }
  28.  
  29. public OnPlayerConnect(playerid)
  30. {
  31.     return 1;
  32. }
  33.  
  34. public OnPlayerDisconnect(playerid, reason)
  35. {
  36.     return 1;
  37. }
  38.  
  39. public OnPlayerSpawn(playerid)
  40. {
  41.     return 1;
  42. }
  43.  
  44. public OnPlayerDeath(playerid, killerid, reason)
  45. {
  46.     return 1;
  47. }
  48.  
  49. public OnVehicleSpawn(vehicleid)
  50. {
  51.     return 1;
  52. }
  53.  
  54. public OnVehicleDeath(vehicleid, killerid)
  55. {
  56.     return 1;
  57. }
  58.  
  59. public OnPlayerText(playerid, text[])
  60. {
  61.     return 1;
  62. }
  63.  
  64. public OnPlayerCommandText(playerid, cmdtext[])
  65. {
  66.     if (strcmp("/opengate", cmdtext, true, 10) == 0)
  67.     {
  68.         MoveObject(Gate, -2573.00000000,922.70001221,64.00000000, 1);//First put a the open gate coords // This will open our gate with low speed of 1
  69.         SendClientMessage(playerid, COLOR_BRIGHTRED, "You opened the gate");
  70.         return 1;
  71.     }
  72.    
  73.     if (strcmp("/closegate", cmdtext, true, 10) == 0)
  74.     {
  75.         MoveObject(Gate, -2573.00000000,922.70001221,64.00000000, 1);//First put a the closed gate coords  // This will close our gate with low speed of 1
  76.         SendClientMessage(playerid, COLOR_BRIGHTRED, "You closed the gate");
  77.         return 1;
  78.     }
  79.     return 0;
  80. }
  81.  
  82. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  83. {
  84.     return 1;
  85. }
  86.  
  87. public OnPlayerExitVehicle(playerid, vehicleid)
  88. {
  89.     return 1;
  90. }
  91.  
  92. public OnPlayerStateChange(playerid, newstate, oldstate)
  93. {
  94.     return 1;
  95. }
  96.  
  97. public OnPlayerEnterCheckpoint(playerid)
  98. {
  99.     return 1;
  100. }
  101.  
  102. public OnPlayerLeaveCheckpoint(playerid)
  103. {
  104.     return 1;
  105. }
  106.  
  107. public OnPlayerEnterRaceCheckpoint(playerid)
  108. {
  109.     return 1;
  110. }
  111.  
  112. public OnPlayerLeaveRaceCheckpoint(playerid)
  113. {
  114.     return 1;
  115. }
  116.  
  117. public OnRconCommand(cmd[])
  118. {
  119.     return 1;
  120. }
  121.  
  122. public OnPlayerRequestSpawn(playerid)
  123. {
  124.     return 1;
  125. }
  126.  
  127. public OnObjectMoved(objectid)
  128. {
  129.     return 1;
  130. }
  131.  
  132. public OnPlayerObjectMoved(playerid, objectid)
  133. {
  134.     return 1;
  135. }
  136.  
  137. public OnPlayerPickUpPickup(playerid, pickupid)
  138. {
  139.     return 1;
  140. }
  141.  
  142. public OnVehicleMod(playerid, vehicleid, componentid)
  143. {
  144.     return 1;
  145. }
  146.  
  147. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
  148. {
  149.     return 1;
  150. }
  151.  
  152. public OnVehicleRespray(playerid, vehicleid, color1, color2)
  153. {
  154.     return 1;
  155. }
  156.  
  157. public OnPlayerSelectedMenuRow(playerid, row)
  158. {
  159.     return 1;
  160. }
  161.  
  162. public OnPlayerExitedMenu(playerid)
  163. {
  164.     return 1;
  165. }
  166.  
  167. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  168. {
  169.     return 1;
  170. }
  171.  
  172. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  173. {
  174.     return 1;
  175. }
  176.  
  177. public OnRconLoginAttempt(ip[], password[], success)
  178. {
  179.     return 1;
  180. }
  181.  
  182. public OnPlayerUpdate(playerid)
  183. {
  184.     return 1;
  185. }
  186.  
  187. public OnPlayerStreamIn(playerid, forplayerid)
  188. {
  189.     return 1;
  190. }
  191.  
  192. public OnPlayerStreamOut(playerid, forplayerid)
  193. {
  194.     return 1;
  195. }
  196.  
  197. public OnVehicleStreamIn(vehicleid, forplayerid)
  198. {
  199.     return 1;
  200. }
  201.  
  202. public OnVehicleStreamOut(vehicleid, forplayerid)
  203. {
  204.     return 1;
  205. }
  206.  
  207. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  208. {
  209.     return 1;
  210. }
  211.  
  212. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  213. {
  214.     return 1;
  215. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement