Advertisement
Rittik

Special Skydiving Command and Teleports

May 25th, 2014
326
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 8.67 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. #include <a_samp>
  5. #include <zcmd>
  6. #include <sscanf2>
  7.  
  8. #if defined FILTERSCRIPT
  9. new flame[MAX_PLAYERS];
  10. new spark[MAX_PLAYERS];
  11.  
  12. public OnFilterScriptInit()
  13. {
  14.     print("\n--------------------------------------");
  15.     print("\n Special Skydiving Commands and Teleports \n -Rittik\n");
  16.     print("--------------------------------------\n");
  17.    
  18.     //Objects
  19.     CreateObject(3502, 413.81750, 2501.72021, 75.90370,   -89.00000, 0.00000, 0.00000);
  20.     CreateObject(3502, 413.82037, 2501.60425, 85.02055,   -89.00000, 0.00000, 0.00000);
  21.     CreateObject(3502, 413.80069, 2501.56909, 93.65675,   -89.00000, 0.00000, 0.00000);
  22.     CreateObject(3502, 413.80069, 2501.56909, 102.48036,   -89.00000, 0.00000, 0.00000);
  23.     CreateObject(3502, 413.80069, 2501.56909, 120.24547,   -89.00000, 0.00000, 0.00000);
  24.     CreateObject(3502, 413.80069, 2501.56909, 111.37554,   -89.00000, 0.00000, 0.00000);
  25.     CreateObject(3502, 413.95215, 2501.42163, 137.38489,   -89.00000, 0.00000, 0.00000);
  26.     CreateObject(3502, 413.88107, 2501.54370, 128.71545,   -89.00000, 0.00000, 0.00000);
  27.     CreateObject(3502, 413.93008, 2501.29492, 146.12653,   -89.00000, 0.00000, 0.00000);
  28.     CreateObject(3502, 413.93008, 2501.29492, 155.16020,   -89.00000, 0.00000, 0.00000);
  29.     CreateObject(3502, 413.93008, 2501.29492, 163.78241,   -89.00000, 0.00000, 0.00000);
  30.     CreateObject(3502, 413.93008, 2501.29492, 172.45221,   -89.00000, 0.00000, 0.00000);
  31.     CreateObject(3502, 413.93008, 2501.29492, 181.00226,   -89.00000, 0.00000, 0.00000);
  32.     CreateObject(3502, 413.93008, 2501.29492, 190.03958,   -89.00000, 0.00000, 0.00000);
  33.     CreateObject(3502, 413.93008, 2501.29492, 198.80298,   -89.00000, 0.00000, 0.00000);
  34.     CreateObject(3502, 413.93008, 2501.29492, 216.32607,   -89.00000, 0.00000, 0.00000);
  35.     CreateObject(3502, 413.93008, 2501.29492, 207.60753,   -89.00000, 0.00000, 0.00000);
  36.     CreateObject(3502, 413.93008, 2501.29492, 224.99776,   -89.00000, 0.00000, 0.00000);
  37.     CreateObject(18814, 413.76840, 2501.18970, 280.04407,   0.00000, 0.00000, 0.00000);
  38.     CreateObject(18814, 413.76840, 2501.18970, 229.83620,   0.00000, 0.00000, 0.00000);
  39.     CreateObject(18814, 413.76840, 2501.18970, 329.84024,   0.00000, 0.00000, 0.00000);
  40.     CreateObject(18993, 412.47714, 2500.32715, 353.84933,   0.00000, 0.00000, 0.00000);
  41.     CreateObject(18999, 407.33481, 2505.09058, 538.88660,   -6.00000, 0.00000, 10.00000);
  42.     CreateObject(18768, 406.18262, 2515.37329, 779.26758,   0.00000, 0.00000, 0.00000);
  43.     CreateObject(18789, 2346.61060, 143.32130, 246.75667,   0.00000, -50.00000, 271.00000);
  44.     CreateObject(18789, 2344.98486, 239.54614, 131.92850,   0.00000, -50.00000, 271.00000);
  45.     CreateObject(18789, 2348.18774, 47.83390, 360.86487,   0.00000, -50.00000, 271.00000);
  46.     CreateObject(18789, 2349.17627, -48.28562, 475.34766,   0.00000, -50.00000, 270.19159);
  47.     CreateObject(18789, 2350.01563, -143.75439, 589.90558,   0.00000, -50.00000, 271.00000);
  48.     CreateObject(18769, 2351.35938, -202.46954, 648.33044,   0.00000, 0.00000, 0.00000);
  49.     CreateObject(18771, 2341.67065, -197.30995, 649.06055,   0.00000, 0.00000, 0.00000);
  50.     CreateObject(5816, 2357.82959, -196.71701, 657.15674,   0.00000, 0.00000, -90.00000);
  51.     CreateObject(18779, 2338.21313, 307.54443, 72.47530,   0.00000, -37.00000, 270.00000);
  52.     //vehicle
  53.     CreateVehicle(522, 2354.1628, -209.2096, 649.8934, 0.0000, -1, -1, 100);
  54.     CreateVehicle(522, 2352.3025, -209.1036, 649.9590, 0.0000, -1, -1, 100);
  55.     CreateVehicle(522, 2350.8242, -208.9131, 649.9590, 0.0000, -1, -1, 100);
  56.     CreateVehicle(522, 2348.8462, -209.1667, 649.8550, 0.0000, -1, -1, 100);
  57.     CreateVehicle(522, 2347.3198, -208.3190, 650.2033, 0.0000, -1, -1, 100);
  58.     CreateVehicle(522, 2345.3452, -208.6469, 650.0979, 0.0000, -1, -1, 100);
  59.  
  60.     return 1;
  61. }
  62.  
  63. public OnFilterScriptExit()
  64. {
  65.     return 1;
  66. }
  67.  
  68. #else
  69.  
  70. main()
  71. {
  72.     print("\n----------------------------------");
  73.     print(" Blank Gamemode by your name here");
  74.     print("----------------------------------\n");
  75. }
  76.  
  77. #endif
  78.  
  79.  
  80. public OnGameModeInit()
  81. {
  82.     // Don't use these lines if it's a filterscript
  83.    
  84.     return 1;
  85. }
  86.  
  87. public OnGameModeExit()
  88. {
  89.     return 1;
  90. }
  91.  
  92. public OnPlayerRequestClass(playerid, classid)
  93. {
  94.     SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
  95.     SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
  96.     SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
  97.     return 1;
  98. }
  99.  
  100. public OnPlayerConnect(playerid)
  101. {
  102.     flame[playerid]=0;
  103.     spark[playerid]=0;
  104.     return 1;
  105. }
  106.  
  107. public OnPlayerDisconnect(playerid, reason)
  108. {
  109.     flame[playerid]=0;
  110.     spark[playerid]=0;
  111.     return 1;
  112. }
  113.  
  114. public OnPlayerSpawn(playerid)
  115. {
  116.     return 1;
  117. }
  118.  
  119. public OnPlayerDeath(playerid, killerid, reason)
  120. {
  121.     if(flame[playerid]==1||spark[playerid]==1)
  122.     {
  123.     flame[playerid]=0;
  124.     spark[playerid]=0;
  125.     }
  126.     return 1;
  127. }
  128.  
  129. public OnVehicleSpawn(vehicleid)
  130. {
  131.     return 1;
  132. }
  133.  
  134. public OnVehicleDeath(vehicleid, killerid)
  135. {
  136.     return 1;
  137. }
  138.  
  139. public OnPlayerText(playerid, text[])
  140. {
  141.     return 1;
  142. }
  143. //Flames
  144. CMD:flame(playerid,params[])
  145. {
  146. if(flame[playerid]==0)
  147. {
  148. flame[playerid]=1;
  149. SetPlayerAttachedObject(playerid, 1, 18693, 9,0.0,0.0, 0.0,0.0,0.0, 0.0, 0.0, 0.0, 0.0);
  150. SetPlayerAttachedObject(playerid, 2, 18693, 10,0.0,0.0, 0.0,0.0,0.0, 0.0, 0.0, 0.0, 0.0);
  151. }
  152. else
  153. {
  154. flame[playerid]=0;
  155. RemovePlayerAttachedObject(playerid, 1);
  156. RemovePlayerAttachedObject(playerid, 2);
  157. }
  158. return 1;
  159. }
  160. //Sparkle
  161. CMD:spark(playerid,params[])
  162. {
  163. if(spark[playerid]==0)
  164. {
  165. spark[playerid]=1;
  166. SetPlayerAttachedObject(playerid, 3, 18718, 5,0.0,0.0, 0.0,0.0,0.0, 0.0, 0.0, 0.0, 0.0);
  167. SetPlayerAttachedObject(playerid, 4, 18718, 6,0.0,0.0, 0.0,0.0,0.0, 0.0, 0.0, 0.0, 0.0);
  168. }
  169. else
  170. {
  171. spark[playerid]=0;
  172. RemovePlayerAttachedObject(playerid, 3);
  173. RemovePlayerAttachedObject(playerid, 4);
  174. }
  175. return 1;
  176. }
  177. //Dive Command
  178. CMD:dive(playerid,params[])
  179. {
  180. new Float:c;
  181. if(sscanf(params,"f",c))
  182. {
  183. new Float:x,Float:y,Float:z;
  184. GetPlayerPos(playerid,x,y,z);
  185. SetPlayerPos(playerid,x,y,z+1200);
  186. GivePlayerWeapon(playerid,46,1);
  187. }
  188. else
  189. {
  190. new Float:x,Float:y,Float:z;
  191. GetPlayerPos(playerid,x,y,z);
  192. SetPlayerPos(playerid,x,y,z+c);
  193. GivePlayerWeapon(playerid,46,1);
  194. }
  195. return 1;
  196. }
  197. //Tubular Dive
  198. CMD:tube(playerid,params[])
  199. {
  200. SendClientMessage(playerid,-1,"Teleported to {FF00000}Tubular Dive");
  201. SetPlayerPos(playerid,408.1053,2503.5518,780.9316);
  202. GivePlayerWeapon(playerid,46,1);
  203. return 1;
  204. }
  205. //Wingsuit Road
  206. CMD:wingsuit(playerid,params[])
  207. {
  208. SendClientMessage(playerid,-1,"Teleported to {FF00000}Wingsuit Road");
  209. SetPlayerPos(playerid,2350.5598,-202.3908,649.9945);
  210. GivePlayerWeapon(playerid,46,1);
  211. return 1;
  212. }
  213. public OnPlayerCommandText(playerid, cmdtext[])
  214. {
  215.     if (strcmp("/mycommand", cmdtext, true, 10) == 0)
  216.     {
  217.         // Do something here
  218.         return 1;
  219.     }
  220.     return 0;
  221. }
  222.  
  223. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  224. {
  225.     return 1;
  226. }
  227.  
  228. public OnPlayerExitVehicle(playerid, vehicleid)
  229. {
  230.     return 1;
  231. }
  232.  
  233. public OnPlayerStateChange(playerid, newstate, oldstate)
  234. {
  235.     return 1;
  236. }
  237.  
  238. public OnPlayerEnterCheckpoint(playerid)
  239. {
  240.     return 1;
  241. }
  242.  
  243. public OnPlayerLeaveCheckpoint(playerid)
  244. {
  245.     return 1;
  246. }
  247.  
  248. public OnPlayerEnterRaceCheckpoint(playerid)
  249. {
  250.     return 1;
  251. }
  252.  
  253. public OnPlayerLeaveRaceCheckpoint(playerid)
  254. {
  255.     return 1;
  256. }
  257.  
  258. public OnRconCommand(cmd[])
  259. {
  260.     return 1;
  261. }
  262.  
  263. public OnPlayerRequestSpawn(playerid)
  264. {
  265.     return 1;
  266. }
  267.  
  268. public OnObjectMoved(objectid)
  269. {
  270.     return 1;
  271. }
  272.  
  273. public OnPlayerObjectMoved(playerid, objectid)
  274. {
  275.     return 1;
  276. }
  277.  
  278. public OnPlayerPickUpPickup(playerid, pickupid)
  279. {
  280.     return 1;
  281. }
  282.  
  283. public OnVehicleMod(playerid, vehicleid, componentid)
  284. {
  285.     return 1;
  286. }
  287.  
  288. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
  289. {
  290.     return 1;
  291. }
  292.  
  293. public OnVehicleRespray(playerid, vehicleid, color1, color2)
  294. {
  295.     return 1;
  296. }
  297.  
  298. public OnPlayerSelectedMenuRow(playerid, row)
  299. {
  300.     return 1;
  301. }
  302.  
  303. public OnPlayerExitedMenu(playerid)
  304. {
  305.     return 1;
  306. }
  307.  
  308. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  309. {
  310.     return 1;
  311. }
  312.  
  313. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  314. {
  315.     return 1;
  316. }
  317.  
  318. public OnRconLoginAttempt(ip[], password[], success)
  319. {
  320.     return 1;
  321. }
  322.  
  323. public OnPlayerUpdate(playerid)
  324. {
  325.     return 1;
  326. }
  327.  
  328. public OnPlayerStreamIn(playerid, forplayerid)
  329. {
  330.     return 1;
  331. }
  332.  
  333. public OnPlayerStreamOut(playerid, forplayerid)
  334. {
  335.     return 1;
  336. }
  337.  
  338. public OnVehicleStreamIn(vehicleid, forplayerid)
  339. {
  340.     return 1;
  341. }
  342.  
  343. public OnVehicleStreamOut(vehicleid, forplayerid)
  344. {
  345.     return 1;
  346. }
  347.  
  348. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  349. {
  350.     return 1;
  351. }
  352.  
  353. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  354. {
  355.     return 1;
  356. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement