Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // This is a comment
- // uncomment the line below if you want to write a filterscript
- #define FILTERSCRIPT
- #include <a_samp>
- #include <zcmd>
- #include <sscanf2>
- #if defined FILTERSCRIPT
- new flame[MAX_PLAYERS];
- new spark[MAX_PLAYERS];
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print("\n Special Skydiving Commands and Teleports \n -Rittik\n");
- print("--------------------------------------\n");
- //Objects
- CreateObject(3502, 413.81750, 2501.72021, 75.90370, -89.00000, 0.00000, 0.00000);
- CreateObject(3502, 413.82037, 2501.60425, 85.02055, -89.00000, 0.00000, 0.00000);
- CreateObject(3502, 413.80069, 2501.56909, 93.65675, -89.00000, 0.00000, 0.00000);
- CreateObject(3502, 413.80069, 2501.56909, 102.48036, -89.00000, 0.00000, 0.00000);
- CreateObject(3502, 413.80069, 2501.56909, 120.24547, -89.00000, 0.00000, 0.00000);
- CreateObject(3502, 413.80069, 2501.56909, 111.37554, -89.00000, 0.00000, 0.00000);
- CreateObject(3502, 413.95215, 2501.42163, 137.38489, -89.00000, 0.00000, 0.00000);
- CreateObject(3502, 413.88107, 2501.54370, 128.71545, -89.00000, 0.00000, 0.00000);
- CreateObject(3502, 413.93008, 2501.29492, 146.12653, -89.00000, 0.00000, 0.00000);
- CreateObject(3502, 413.93008, 2501.29492, 155.16020, -89.00000, 0.00000, 0.00000);
- CreateObject(3502, 413.93008, 2501.29492, 163.78241, -89.00000, 0.00000, 0.00000);
- CreateObject(3502, 413.93008, 2501.29492, 172.45221, -89.00000, 0.00000, 0.00000);
- CreateObject(3502, 413.93008, 2501.29492, 181.00226, -89.00000, 0.00000, 0.00000);
- CreateObject(3502, 413.93008, 2501.29492, 190.03958, -89.00000, 0.00000, 0.00000);
- CreateObject(3502, 413.93008, 2501.29492, 198.80298, -89.00000, 0.00000, 0.00000);
- CreateObject(3502, 413.93008, 2501.29492, 216.32607, -89.00000, 0.00000, 0.00000);
- CreateObject(3502, 413.93008, 2501.29492, 207.60753, -89.00000, 0.00000, 0.00000);
- CreateObject(3502, 413.93008, 2501.29492, 224.99776, -89.00000, 0.00000, 0.00000);
- CreateObject(18814, 413.76840, 2501.18970, 280.04407, 0.00000, 0.00000, 0.00000);
- CreateObject(18814, 413.76840, 2501.18970, 229.83620, 0.00000, 0.00000, 0.00000);
- CreateObject(18814, 413.76840, 2501.18970, 329.84024, 0.00000, 0.00000, 0.00000);
- CreateObject(18993, 412.47714, 2500.32715, 353.84933, 0.00000, 0.00000, 0.00000);
- CreateObject(18999, 407.33481, 2505.09058, 538.88660, -6.00000, 0.00000, 10.00000);
- CreateObject(18768, 406.18262, 2515.37329, 779.26758, 0.00000, 0.00000, 0.00000);
- CreateObject(18789, 2346.61060, 143.32130, 246.75667, 0.00000, -50.00000, 271.00000);
- CreateObject(18789, 2344.98486, 239.54614, 131.92850, 0.00000, -50.00000, 271.00000);
- CreateObject(18789, 2348.18774, 47.83390, 360.86487, 0.00000, -50.00000, 271.00000);
- CreateObject(18789, 2349.17627, -48.28562, 475.34766, 0.00000, -50.00000, 270.19159);
- CreateObject(18789, 2350.01563, -143.75439, 589.90558, 0.00000, -50.00000, 271.00000);
- CreateObject(18769, 2351.35938, -202.46954, 648.33044, 0.00000, 0.00000, 0.00000);
- CreateObject(18771, 2341.67065, -197.30995, 649.06055, 0.00000, 0.00000, 0.00000);
- CreateObject(5816, 2357.82959, -196.71701, 657.15674, 0.00000, 0.00000, -90.00000);
- CreateObject(18779, 2338.21313, 307.54443, 72.47530, 0.00000, -37.00000, 270.00000);
- //vehicle
- CreateVehicle(522, 2354.1628, -209.2096, 649.8934, 0.0000, -1, -1, 100);
- CreateVehicle(522, 2352.3025, -209.1036, 649.9590, 0.0000, -1, -1, 100);
- CreateVehicle(522, 2350.8242, -208.9131, 649.9590, 0.0000, -1, -1, 100);
- CreateVehicle(522, 2348.8462, -209.1667, 649.8550, 0.0000, -1, -1, 100);
- CreateVehicle(522, 2347.3198, -208.3190, 650.2033, 0.0000, -1, -1, 100);
- CreateVehicle(522, 2345.3452, -208.6469, 650.0979, 0.0000, -1, -1, 100);
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- #else
- main()
- {
- print("\n----------------------------------");
- print(" Blank Gamemode by your name here");
- print("----------------------------------\n");
- }
- #endif
- public OnGameModeInit()
- {
- // Don't use these lines if it's a filterscript
- return 1;
- }
- public OnGameModeExit()
- {
- return 1;
- }
- public OnPlayerRequestClass(playerid, classid)
- {
- SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
- SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
- SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- flame[playerid]=0;
- spark[playerid]=0;
- return 1;
- }
- public OnPlayerDisconnect(playerid, reason)
- {
- flame[playerid]=0;
- spark[playerid]=0;
- return 1;
- }
- public OnPlayerSpawn(playerid)
- {
- return 1;
- }
- public OnPlayerDeath(playerid, killerid, reason)
- {
- if(flame[playerid]==1||spark[playerid]==1)
- {
- flame[playerid]=0;
- spark[playerid]=0;
- }
- return 1;
- }
- public OnVehicleSpawn(vehicleid)
- {
- return 1;
- }
- public OnVehicleDeath(vehicleid, killerid)
- {
- return 1;
- }
- public OnPlayerText(playerid, text[])
- {
- return 1;
- }
- //Flames
- CMD:flame(playerid,params[])
- {
- if(flame[playerid]==0)
- {
- flame[playerid]=1;
- SetPlayerAttachedObject(playerid, 1, 18693, 9,0.0,0.0, 0.0,0.0,0.0, 0.0, 0.0, 0.0, 0.0);
- SetPlayerAttachedObject(playerid, 2, 18693, 10,0.0,0.0, 0.0,0.0,0.0, 0.0, 0.0, 0.0, 0.0);
- }
- else
- {
- flame[playerid]=0;
- RemovePlayerAttachedObject(playerid, 1);
- RemovePlayerAttachedObject(playerid, 2);
- }
- return 1;
- }
- //Sparkle
- CMD:spark(playerid,params[])
- {
- if(spark[playerid]==0)
- {
- spark[playerid]=1;
- SetPlayerAttachedObject(playerid, 3, 18718, 5,0.0,0.0, 0.0,0.0,0.0, 0.0, 0.0, 0.0, 0.0);
- SetPlayerAttachedObject(playerid, 4, 18718, 6,0.0,0.0, 0.0,0.0,0.0, 0.0, 0.0, 0.0, 0.0);
- }
- else
- {
- spark[playerid]=0;
- RemovePlayerAttachedObject(playerid, 3);
- RemovePlayerAttachedObject(playerid, 4);
- }
- return 1;
- }
- //Dive Command
- CMD:dive(playerid,params[])
- {
- new Float:c;
- if(sscanf(params,"f",c))
- {
- new Float:x,Float:y,Float:z;
- GetPlayerPos(playerid,x,y,z);
- SetPlayerPos(playerid,x,y,z+1200);
- GivePlayerWeapon(playerid,46,1);
- }
- else
- {
- new Float:x,Float:y,Float:z;
- GetPlayerPos(playerid,x,y,z);
- SetPlayerPos(playerid,x,y,z+c);
- GivePlayerWeapon(playerid,46,1);
- }
- return 1;
- }
- //Tubular Dive
- CMD:tube(playerid,params[])
- {
- SendClientMessage(playerid,-1,"Teleported to {FF00000}Tubular Dive");
- SetPlayerPos(playerid,408.1053,2503.5518,780.9316);
- GivePlayerWeapon(playerid,46,1);
- return 1;
- }
- //Wingsuit Road
- CMD:wingsuit(playerid,params[])
- {
- SendClientMessage(playerid,-1,"Teleported to {FF00000}Wingsuit Road");
- SetPlayerPos(playerid,2350.5598,-202.3908,649.9945);
- GivePlayerWeapon(playerid,46,1);
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if (strcmp("/mycommand", cmdtext, true, 10) == 0)
- {
- // Do something here
- return 1;
- }
- return 0;
- }
- public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
- {
- return 1;
- }
- public OnPlayerExitVehicle(playerid, vehicleid)
- {
- return 1;
- }
- public OnPlayerStateChange(playerid, newstate, oldstate)
- {
- return 1;
- }
- public OnPlayerEnterCheckpoint(playerid)
- {
- return 1;
- }
- public OnPlayerLeaveCheckpoint(playerid)
- {
- return 1;
- }
- public OnPlayerEnterRaceCheckpoint(playerid)
- {
- return 1;
- }
- public OnPlayerLeaveRaceCheckpoint(playerid)
- {
- return 1;
- }
- public OnRconCommand(cmd[])
- {
- return 1;
- }
- public OnPlayerRequestSpawn(playerid)
- {
- return 1;
- }
- public OnObjectMoved(objectid)
- {
- return 1;
- }
- public OnPlayerObjectMoved(playerid, objectid)
- {
- return 1;
- }
- public OnPlayerPickUpPickup(playerid, pickupid)
- {
- return 1;
- }
- public OnVehicleMod(playerid, vehicleid, componentid)
- {
- return 1;
- }
- public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
- {
- return 1;
- }
- public OnVehicleRespray(playerid, vehicleid, color1, color2)
- {
- return 1;
- }
- public OnPlayerSelectedMenuRow(playerid, row)
- {
- return 1;
- }
- public OnPlayerExitedMenu(playerid)
- {
- return 1;
- }
- public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
- {
- return 1;
- }
- public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
- {
- return 1;
- }
- public OnRconLoginAttempt(ip[], password[], success)
- {
- return 1;
- }
- public OnPlayerUpdate(playerid)
- {
- return 1;
- }
- public OnPlayerStreamIn(playerid, forplayerid)
- {
- return 1;
- }
- public OnPlayerStreamOut(playerid, forplayerid)
- {
- return 1;
- }
- public OnVehicleStreamIn(vehicleid, forplayerid)
- {
- return 1;
- }
- public OnVehicleStreamOut(vehicleid, forplayerid)
- {
- return 1;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- return 1;
- }
- public OnPlayerClickPlayer(playerid, clickedplayerid, source)
- {
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement