Advertisement
Guest User

Gecatahh

a guest
Jun 7th, 2008
1,103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.79 KB | None | 0 0
  1. #include <a_samp>
  2.  
  3. // This is a comment
  4. // uncomment the line below if you want to write a filterscript
  5. //#define FILTERscript
  6. new gates[10];
  7. new wgates[20];
  8. new lamp[10];
  9. #if defined FILTERscript
  10.  
  11. public OnFilterscriptInit()
  12. {
  13. print("\n--------------------------------------");
  14. print(" Police station useful comands by Gecatahh");
  15. print("--------------------------------------\n");
  16. return 1;
  17. }
  18.  
  19. public OnFilterscriptExit()
  20. {
  21. return 1;
  22. }
  23.  
  24. #else
  25.  
  26. main()
  27. {
  28. print("\n----------------------------------");
  29. print(" Police station useful comands by Gecatahh");
  30. print("----------------------------------\n");
  31. }
  32.  
  33. #endif
  34.  
  35. public OnGameModeInit()
  36. {
  37. gates[1] = CreateObject(971,1589.053344,-1638.123168,14.122960,0.000000,0.000000,181.045272);//gateinside
  38. CreateObject(997,1544.590576,-1617.848388,12.438137,0.000000,0.000000,271.938476);
  39. CreateObject(997,1544.710205,-1620.973266,12.416269,0.000000,0.000000,270.590179);
  40. CreateObject(997,1544.037353,-1632.651123,12.576721,0.000000,0.000000,269.745178);
  41. CreateObject(997,1544.005737,-1635.747070,12.857315,0.000000,0.000000,270.540161);
  42. gates[3] = CreateObject(968,1544.700317,-1630.735717,13.096980,-1.000000,-91.000000,269.972869);//gateout
  43. CreateObject(1616,1583.743530,-1637.326538,17.417528,0.000000,-14.000000,251.336318);//camera1
  44. CreateObject(1616,1540.411865,-1641.461914,18.786596,0.000000,-10.000000,298.783935);//camera2
  45. CreateObject(1215,1544.439819,-1623.946655,12.815100,0.000000,0.000000,264.435058);
  46. CreateObject(1215,1544.219482,-1630.794067,12.832411,0.000000,0.000000,241.320739);
  47. CreateObject(1215,1584.373291,-1637.751464,12.904351,0.000000,0.000000,164.794158);
  48. CreateObject(1215,1592.681762,-1637.685302,12.979562,0.000000,0.000000,184.221054);
  49. CreateObject(1215,1546.053833,-1672.452758,12.984669,0.000000,0.000000,308.639587);
  50. CreateObject(1215,1546.100097,-1678.703247,13.097762,0.000000,0.000000,211.866531);
  51. CreateObject(2008,256.912719,86.266647,1001.380432,0.000000,0.000000,89.637771);
  52. CreateObject(2008,256.895721,84.360313,1001.387145,0.000000,0.000000,90.264396);
  53. CreateObject(1708,258.067474,87.681488,1001.343872,0.000000,0.000000,270.072540);
  54. CreateObject(1708,258.011108,85.874336,1001.301879,0.000000,0.000000,268.482452);
  55. CreateObject(1616,251.099990,91.619064,1004.695495,6.000000,-6.000000,189.532470);//camera3
  56. CreateObject(1616,242.434860,62.707202,1006.762084,0.000000,-1.000000,276.543151);//camera4
  57. gates[4] = CreateObject(1553,246.750320,72.625373,1003.791320,0.000000,0.000000,359.420227);//door1
  58. gates[5] = CreateObject(1553,252.132568,74.126708,1003.869262,0.000000,0.000000,270.505157);//door2
  59. gates[6] = CreateObject(1553,259.135986,90.645027,1002.695190,0.000000,0.000000,270.107757);//door3
  60. gates[7] = CreateObject(1553,266.258880,87.403976,1001.264709,0.000000,0.000000,90.746047);//door4
  61. gates[8] = CreateObject(1553,266.226318,82.993461,1001.272521,0.000000,0.000000,90.333274);//door5
  62. wgates[1] = CreateObject(969,266.254119,80.097030,1002.746459,0.000000,0.000000,89.614189);
  63. wgates[2] = CreateObject(969,258.981872,93.270011,998.136230,0.000000,0.000000,270.699279);
  64. wgates[3] = CreateObject(969,247.969924,89.569862,1005.312072,0.000000,0.000000,270.628265);
  65. wgates[4] = CreateObject(969,244.005432,72.650382,1005.176635,0.000000,0.000000,-1.310884);
  66. wgates[5] = CreateObject(969,241.849548,65.413963,999.263977,0.000000,0.000000,359.059967);
  67. wgates[6] = CreateObject(971,1546.122924,-1675.582031,7.959709,0.000000,0.000000,269.105682);//outgates
  68. wgates[7] = CreateObject(971,1550.607788,-1671.214233,7.326846,0.000000,0.000000,179.444091);
  69. wgates[8] = CreateObject(971,1550.480712,-1679.953857,7.754576,0.000000,0.000000,0.3578);
  70. wgates[9] = CreateObject(971,1559.672729,-1675.573364,19.358980,-90.000000,0.000000,269.081054);
  71. return 1;
  72. }
  73.  
  74. public OnGameModeExit()
  75. {
  76. return 1;
  77. }
  78.  
  79. public OnPlayerRequestClass(playerid, classid)
  80. {
  81. SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
  82. SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
  83. SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
  84. return 1;
  85. }
  86.  
  87. public OnPlayerRequestSpawn(playerid)
  88. {
  89. return 1;
  90. }
  91.  
  92. public OnPlayerConnect(playerid)
  93. {
  94. return 1;
  95. }
  96.  
  97. public OnPlayerDisconnect(playerid, reason)
  98. {
  99. return 1;
  100. }
  101.  
  102. public OnPlayerSpawn(playerid)
  103. {
  104. return 1;
  105. }
  106.  
  107. public OnPlayerDeath(playerid, killerid, reason)
  108. {
  109. return 1;
  110. }
  111.  
  112. public OnVehicleSpawn(vehicleid)
  113. {
  114. return 1;
  115. }
  116.  
  117. public OnVehicleDeath(vehicleid, killerid)
  118. {
  119. return 1;
  120. }
  121.  
  122. public OnPlayerText(playerid, text[])
  123. {
  124. return 1;
  125. }
  126.  
  127. public OnPlayerPrivmsg(playerid, recieverid, text[])
  128. {
  129. return 1;
  130. }
  131.  
  132. public OnPlayerCommandText(playerid, cmdtext[])
  133. {
  134. if (strcmp(cmdtext, "/lspdinclose", true) == 0){
  135. MoveObject(gates[1], 1589.053344,-1638.123168,14.122960,1);
  136. return 1;
  137. }
  138. if (strcmp(cmdtext, "/lspdinopen", true) == 0){
  139. MoveObject(gates[1], 1589.053344,-1638.123168,7.858397,1);
  140. return 1;
  141. }
  142. if (strcmp(cmdtext, "/lspdoutopen", true) == 0){
  143. DestroyObject( gates[3] );
  144. gates[2] = CreateObject(968,1544.700317,-1630.735717,12.924660,0.000000,0.000000,270.972869);
  145. return 1;
  146. }
  147. if (strcmp(cmdtext, "/lspdoutclose", true) == 0){
  148. DestroyObject( gates[2] );
  149. gates[3] = CreateObject(968,1544.700317,-1630.735717,13.096980,-1.000000,-91.000000,269.972869);
  150. return 1;
  151. }
  152. if (strcmp(cmdtext, "/lspdcamera1", true) == 0){
  153. TogglePlayerControllable(playerid, 0);
  154. SetPlayerCameraPos(playerid, 1539.7491,-1636.6981,13.9816);
  155. SetPlayerCameraLookAt(playerid, 1543.4221,-1626.4825,13.3828);
  156. return 1;
  157. }
  158. if (strcmp(cmdtext, "/lspdcamera2", true) == 0){
  159. TogglePlayerControllable(playerid, 0);
  160. SetPlayerCameraPos(playerid, 1582.6552,-1637.4558,13.3905);
  161. SetPlayerCameraLookAt(playerid, 1588.0464,-1628.6290,13.3828);
  162. return 1;
  163. }
  164. if (strcmp(cmdtext, "/lspdcameraoff", true) == 0){
  165. SetCameraBehindPlayer(playerid);
  166. TogglePlayerControllable(playerid, 1);
  167. return 1;
  168. }
  169. if (strcmp(cmdtext, "/lspddoor1close", true) == 0){
  170. MoveObject(gates[4], 246.750320,72.625373,1003.791320,1);
  171. return 1;
  172. }
  173. if (strcmp(cmdtext, "/lspddoor1open", true) == 0){
  174. MoveObject(gates[4], 248.560958,72.655189,1003.791320,1);
  175. return 1;
  176. }
  177. if (strcmp(cmdtext, "/lspddoor2close", true) == 0){
  178. MoveObject(gates[5], 252.132568,74.126708,1003.869262,1);
  179. return 1;
  180. }
  181. if (strcmp(cmdtext, "/lspddoor2open", true) == 0){
  182. MoveObject(gates[5], 252.132568,74.126708,1006.383789,1);
  183. return 1;
  184. }
  185. if (strcmp(cmdtext, "/lspddoor3close", true) == 0){
  186. MoveObject(gates[6], 259.135986,90.645027,1002.695190,1);
  187. return 1;
  188. }
  189. if (strcmp(cmdtext, "/lspddoor3open", true) == 0){
  190. MoveObject(gates[6], 259.135986,90.645027,1005.024963,1);
  191. return 1;
  192. }
  193. if (strcmp(cmdtext, "/lspddoor4close", true) == 0){
  194. MoveObject(gates[7], 266.258880,87.403976,1001.264709,1);
  195. return 1;
  196. }
  197. if (strcmp(cmdtext, "/lspddoor4open", true) == 0){
  198. MoveObject(gates[7], 266.259887,85.617530,1001.264709,1);
  199. return 1;
  200. }
  201. if (strcmp(cmdtext, "/lspddoor5close", true) == 0){
  202. MoveObject(gates[8], 266.226318,82.993461,1001.272521,1);
  203. return 1;
  204. }
  205. if (strcmp(cmdtext, "/lspddoor5open", true) == 0){
  206. MoveObject(gates[8], 266.226318,81.172584,1001.272521,1);
  207. return 1;
  208. }
  209. if (strcmp(cmdtext, "/lspdcamera3", true) == 0){
  210. TogglePlayerControllable(playerid, 0);
  211. SetPlayerCameraPos(playerid, 242.9750,62.7240,1003.6406);
  212. SetPlayerCameraLookAt(playerid, 246.4861,69.7667,1003.6406);
  213. return 1;
  214. }
  215. if (strcmp(cmdtext, "/lspdcamera4", true) == 0){
  216. TogglePlayerControllable(playerid, 0);
  217. SetPlayerCameraPos(playerid, 251.4041,91.4763,1002.4453);
  218. SetPlayerCameraLookAt(playerid, 254.8335,89.5035,1002.4453);
  219. return 1;
  220. }
  221. if (strcmp(cmdtext, "/lspdwarnoff", true) == 0){
  222. MoveObject(wgates[1], 266.254119,80.097030,1002.746459,2);
  223. MoveObject(wgates[2], 258.981872,93.270011,998.136230,2);
  224. MoveObject(wgates[3], 247.969924,89.569862,1005.312072,2);
  225. MoveObject(wgates[4], 244.005432,72.650382,1005.176635,2);
  226. MoveObject(wgates[5], 241.849548,65.413963,999.263977,2);
  227. MoveObject(wgates[6], 1546.122924,-1675.582031,7.959709,2);
  228. MoveObject(wgates[7], 1550.607788,-1671.214233,7.326846,2);
  229. MoveObject(wgates[8], 1550.480712,-1679.953857,7.754576,2);
  230. MoveObject(wgates[9], 1559.672729,-1675.573364,19.358980,2);
  231. DestroyObject( lamp[1] );
  232. DestroyObject( lamp[2] );
  233. DestroyObject( lamp[3] );
  234. DestroyObject( lamp[4] );
  235. DestroyObject( lamp[5] );
  236. DestroyObject( lamp[6] );
  237. DestroyObject( lamp[7] );
  238. DestroyObject( lamp[8] );
  239. DestroyObject( lamp[9] );
  240. return 1;
  241. }
  242. if (strcmp(cmdtext, "/lspdwarnon", true) == 0){
  243. MoveObject(wgates[1], 266.254119,80.097030,999.760253,2);
  244. MoveObject(wgates[2], 258.981872,93.270011,1001.136230,2);
  245. MoveObject(wgates[3], 247.969924,89.569862,1002.348022,2);
  246. MoveObject(wgates[4], 244.005432,72.650382,1002.408935,2);
  247. MoveObject(wgates[5], 241.849548,65.413963,1002.319763,2);
  248. lamp[1] = CreateObject(3666,1546.472412,-1672.418457,13.930196,0.000000,0.000000,26.449516);
  249. lamp[2] = CreateObject(3666,1546.703491,-1678.717895,13.916833,0.000000,0.000000,173.934997);
  250. lamp[3] = CreateObject(3666,1554.529052,-1672.435791,16.195312,0.000000,0.000000,285.482727);
  251. lamp[4] = CreateObject(3666,1554.332763,-1678.736328,16.195312,0.000000,0.000000,233.468902);
  252. lamp[5] = CreateObject(3666,242.569076,72.190734,1003.134521,0.000000,0.000000,40.420383);
  253. lamp[6] = CreateObject(3666,250.217651,72.105926,1003.228698,0.000000,0.000000,308.612823);
  254. lamp[7] = CreateObject(3666,251.069580,81.934661,1001.882568,0.000000,0.000000,133.771133);
  255. lamp[8] = CreateObject(3666,270.200134,92.650123,1000.553222,0.000000,0.000000,334.065551);
  256. lamp[9] = CreateObject(3666,270.344757,75.482254,1000.476379,0.000000,0.000000,191.497604);
  257. MoveObject(wgates[6], 1546.122924,-1675.582031,15.798633,2);
  258. MoveObject(wgates[7], 1550.607788,-1671.214233,15.777406,2);
  259. MoveObject(wgates[8], 1550.480712,-1679.953857,15.820456,2);
  260. MoveObject(wgates[9], 1549.670043,-1675.573364,19.358980,2);
  261. return 1;
  262. }
  263. return 0;
  264. }
  265.  
  266. public OnPlayerInfoChange(playerid)
  267. {
  268. return 1;
  269. }
  270.  
  271. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  272. {
  273. return 1;
  274. }
  275.  
  276. public OnPlayerExitVehicle(playerid, vehicleid)
  277. {
  278. return 1;
  279. }
  280.  
  281. public OnPlayerStateChange(playerid, newstate, oldstate)
  282. {
  283. return 1;
  284. }
  285.  
  286. public OnPlayerEnterCheckpoint(playerid)
  287. {
  288. return 1;
  289. }
  290.  
  291. public OnPlayerLeaveCheckpoint(playerid)
  292. {
  293. return 1;
  294. }
  295.  
  296. public OnPlayerEnterRaceCheckpoint(playerid)
  297. {
  298. return 1;
  299. }
  300.  
  301. public OnPlayerLeaveRaceCheckpoint(playerid)
  302. {
  303. return 1;
  304. }
  305.  
  306. public OnRconCommand(cmd[])
  307. {
  308. return 1;
  309. }
  310.  
  311. public OnObjectMoved(objectid)
  312. {
  313. return 1;
  314. }
  315.  
  316. public OnPlayerObjectMoved(playerid, objectid)
  317. {
  318. return 1;
  319. }
  320.  
  321. public OnPlayerPickUpPickup(playerid, pickupid)
  322. {
  323. return 1;
  324. }
  325.  
  326. public OnPlayerSelectedMenuRow(playerid, row)
  327. {
  328. return 1;
  329. }
  330.  
  331. public OnPlayerExitedMenu(playerid)
  332. {
  333. return 1;
  334. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement