//----------------------------------------------------------------------------//
#include <a_samp>
#define FILTERSCRIPT
#if defined FILTERSCRIPT
new divesouth, divenorth, divemiddle, parachute, LV;
forward paraspawn();
public paraspawn()
{
parachute = CreatePickup(371,1,1874.9675,-145.5406,2465.8916,-1);
}
public OnGameModeInit()
{
print(" Skydive Challenge by [V]Fuse | Reload as FilterScript!");
return 1;
}
public OnFilterScriptInit()
{
print(" Skydive Challenge by [V]Fuse");
CreateObject(3816,1848.62268100,-145.99795500,2473.41503900,0.00000000,0.00000000,89.38141604); //hangar (DON'T STREAM THIS!)
CreateObject(5038,2002.73962400,-149.45472700,770.35003700,0.00000000,85.94366927,0.00000000); //
CreateObject(5038,1993.12646500,-149.35777300,905.83325200,0.00000000,85.94366927,0.00000000); //
CreateObject(5038,1983.52832000,-149.22337300,1041.19934100,0.00000000,85.94366927,0.00000000); //
CreateObject(5038,1973.90112300,-149.12585400,1176.77673300,0.00000000,85.94366927,0.00000000); //
CreateObject(5038,1964.27490200,-148.99842800,1312.35192900,0.00000000,85.94366927,0.00000000); //
CreateObject(5038,1954.64782700,-148.87146000,1447.94751000,0.00000000,85.94366927,0.00000000); //
CreateObject(5038,1945.01013200,-148.79507400,1583.50463900,0.00000000,85.94366927,0.00000000); //
CreateObject(5038,1935.38952600,-148.66535900,1718.98022500,0.00000000,85.94366927,0.00000000); //
CreateObject(5038,1925.77221700,-148.54951500,1854.45727500,0.00000000,85.94366927,0.00000000); //
CreateObject(5038,1916.16735800,-148.44139100,1989.64917000,0.00000000,85.94366927,0.00000000); //
CreateObject(5038,1906.51733400,-148.33140600,2125.14721700,0.00000000,85.94366927,0.00000000); //
CreateObject(5038,1896.92224100,-148.22027600,2260.65600600,0.00000000,85.94366927,0.00000000); //
CreateObject(5038,1887.31237800,-148.13635300,2396.18164100,0.00000000,85.94366927,0.00000000); //
CreateObject(3571,1880.77783200,-162.89500400,2466.20068400,0.00000000,0.00000000,-6.01605685); //
CreateObject(3571,1880.80993700,-162.86389200,2468.89794900,0.00000000,0.00000000,-6.01605685); //
CreateObject(3571,1881.31115700,-129.94526700,2466.29492200,0.00000000,0.00000000,180.48176276); //
CreateObject(3571,1881.31396500,-129.95802300,2468.99218800,0.00000000,0.00000000,180.48176276); //
CreateObject(8171,1883.00488300,-138.18116800,2460.60083000,0.00000000,-94.53803620,0.00000000); //
CreateObject(8171,1897.29272500,-160.01440400,2470.23608400,0.00000000,-181.34131405,0.00000000); //
CreateObject(8171,1876.66455100,-155.31184400,2489.76025400,0.00000000,-91.10028943,-0.85943669); //
CreateObject(3571,1877.45581100,-165.29696700,2463.54174800,0.00000000,0.00000000,89.38141604); //
CreateObject(3571,1877.83435100,-127.16127000,2463.52758800,0.00000000,0.00000000,89.38141604); //
CreateObject(3502,1887.25732400,-159.59921300,2369.23120100,88.80845825,0.00000000,0.00000000); //
CreateObject(3502,1886.95581100,-156.32576000,2369.19946300,88.80845825,0.00000000,0.00000000); //
CreateObject(3502,1887.41052200,-153.04820300,2369.15893600,88.80845825,0.00000000,0.00000000); //
CreateObject(3502,1887.34179700,-149.65756200,2369.11621100,88.80845825,0.00000000,0.00000000); //
CreateObject(3502,1884.57421900,-151.39189100,2369.11767600,88.80845825,0.00000000,0.00000000); //
CreateObject(3502,1883.57495100,-157.47799700,2371.94897500,0.00000000,0.00000000,0.00000000); //
CreateObject(12912,1882.88720700,-138.48216200,2379.79418900,-0.85943669,88.52203664,0.00000000); //
CreateObject(3374,1892.31274400,-159.28150900,2307.61401400,0.00000000,0.00000000,0.00000000); //
CreateObject(3374,1888.27197300,-159.33142100,2307.64355500,0.00000000,0.00000000,0.00000000); //
CreateObject(3374,1887.24694800,-155.15322900,2307.64892600,0.00000000,0.00000000,0.00000000); //
CreateObject(3374,1894.41564900,-155.18098400,2307.45678700,0.00000000,0.00000000,0.00000000); //
CreateObject(3374,1892.45422400,-151.21154800,2307.48559600,0.00000000,0.00000000,0.00000000); //
CreateObject(3374,1888.46362300,-151.16859400,2307.48999000,0.00000000,0.00000000,0.00000000); //
CreateObject(16287,1887.50817900,-139.35176100,2301.48950200,85.94366927,-5.15662016,95.39747289); //
CreateObject(3866,1899.11657700,-143.44943200,2230.13110400,0.00000000,90.24085273,0.00000000); //
CreateObject(3374,1893.64941400,-148.48632800,2242.28540000,0.00000000,0.00000000,0.00000000); //
CreateObject(3374,1893.80981400,-157.89283800,2242.22631800,0.00000000,0.00000000,0.00000000); //
CreateObject(3374,1897.65625000,-157.87680100,2242.24438500,0.00000000,0.00000000,0.00000000); //
CreateObject(3374,1897.60034200,-149.06866500,2242.26342800,0.00000000,0.00000000,0.00000000); //
CreateObject(3374,1897.69177200,-155.81658900,2242.15527300,0.00000000,0.00000000,0.00000000); //
CreateObject(8397,1909.52795400,-153.85397300,2144.07324200,-81.64648581,0.00000000,-91.10028943); //
CreateObject(8575,1904.41589400,-140.45469700,2145.93725600,85.94366927,-3.43774677,93.67854221); //
CreateObject(3374,1897.20959500,-134.46380600,2191.50634800,0.00000000,0.00000000,-88.52197935); //
CreateObject(3374,1897.10009800,-130.50619500,2191.51513700,0.00000000,0.00000000,-88.52197935); //
CreateObject(3374,1901.15795900,-133.34217800,2191.63281300,0.00000000,0.00000000,3.43774677); //
CreateObject(7617,1907.64636200,-158.64822400,2106.52026400,-87.66254266,-1.71887339,-128.05618180); //
CreateObject(11317,1909.68225100,-130.81900000,2063.61694300,0.00000000,85.94366927,0.00000000); //
CreateObject(5126,1920.36218300,-156.62452700,1944.37780800,87.66242806,-1.71887339,91.95972612); //
CreateObject(16113,1933.89038100,-132.91601600,1906.88940400,-61.02000518,91.95966882,-177.04424517); //
CreateObject(7981,1925.96911600,-148.83224500,1899.03332500,0.00000000,0.00000000,-171.02795914); //
CreateObject(16098,1931.47497600,-147.37391700,1781.60009800,0.00000000,0.00000000,0.00000000); //
CreateObject(4828,1934.31445300,-146.78779600,1698.83606000,0.00000000,85.94366927,0.00000000); //
CreateObject(10785,1955.99499500,-146.84918200,1384.36584500,85.94366927,0.00000000,90.24085273); //
CreateObject(3402,1965.49072300,-139.63656600,1205.01733400,0.00000000,85.94361197,0.00000000); //
CreateObject(3627,1968.29418900,-152.82897900,1204.37597700,85.94366927,0.00000000,90.24079544); //
CreateObject(17852,1976.51818800,-168.54837000,1109.74194300,0.00000000,85.94366927,0.00000000); //
CreateObject(5394,1990.71020500,-146.75795000,939.79193100,21.48591732,89.38141604,181.34125675); //
CreateObject(7317,1997.96594200,-153.56298800,810.17901600,-86.80316326,-0.85943669,-90.24085273); //
CreateObject(3502,1995.54345700,-142.01141400,804.72863800,-85.94372657,-2.57831008,-80.78704911); //
CreateObject(3502,1995.56042500,-138.58816500,804.80963100,-85.94372657,-2.57831008,-80.78704911); //
CreateObject(3502,1997.80542000,-135.55804400,805.70929000,-85.94372657,-2.57831008,-80.78704911); //
CreateObject(3502,1998.51867700,-140.29559300,805.00738500,-85.94372657,-2.57831008,-80.78704911); //
CreateObject(14445,2005.17419400,-159.12797500,704.64856000,-86.80310596,-1.71887339,-90.24085273); //
CreateObject(3502,1955.64135700,-153.77041600,1401.16333000,273.58728988,35.23690440,269.00374211); //
CreateObject(3502,1953.24963400,-156.40451000,1401.10522500,273.58728988,35.23690440,269.00374211); //
CreateObject(3502,1953.17431600,-151.04264800,1401.08703600,273.58728988,35.23690440,261.26886917); //
CreateObject(3866,1957.56933600,-133.16511500,1422.17553700,-86.80304867,0.00000000,-90.24085273); //
CreateObject(6965,1851.55871600,-149.43771400,2468.53588900,0.00000000,0.00000000,0.00000000); //
CreateObject(7073,1828.65087900,-166.43675200,2465.53466800,0.00000000,0.00000000,33.51803102); //
CreateObject(7392,1829.02148400,-125.80011700,2466.23608400,0.00000000,0.00000000,-216.57810386); //
CreateObject(16776,1833.12939500,-147.20243800,2464.24853500,0.00000000,0.00000000,87.66254266); //
CreateObject(13667,1851.08068800,-167.72563200,2469.03125000,0.00000000,0.00000000,85.94384116); //
CreateObject(13562,1854.07849100,-122.61277000,2466.25610400,0.00000000,0.00000000,0.00000000); //
CreateObject(718,1875.20080600,-133.59993000,2464.84155300,0.00000000,0.00000000,0.00000000); //
CreateObject(718,1874.67382800,-158.70394900,2464.84155300,0.00000000,0.00000000,0.00000000); //
CreateObject(718,1874.42785600,-171.95147700,2464.84155300,0.00000000,0.00000000,0.00000000); //
CreateObject(718,1875.10534700,-120.62664000,2464.84155300,0.00000000,0.00000000,0.00000000); //
CreateObject(3437,1877.34252900,-145.55313100,2469.95043900,14.61042378,-0.85943669,91.10028943); //
CreateObject(3437,1877.38940400,-151.73741100,2470.16918900,10.31324031,89.38141604,90.24085273); //
CreateObject(3437,1877.56970200,-139.49339300,2470.25341800,-4.29718346,89.38141604,-91.85596346); //
//Pickups
divesouth = CreatePickup(1247,2,2002.63513200,-155.05017100,718.09991500,-1);
divenorth = CreatePickup(1247,2,2003.26293900,-139.52978500,718.22192400,-1);
divemiddle = CreatePickup(1247,2,2002.91491700,-147.26600600,717.46252400,-1);
LV = CreatePickup(1318,1,2101.8123,-104.5021,2.2849,-1);
paraspawn();
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == divesouth)
{
GameTextForPlayer(playerid,"~r~~h~Congrats!~n~~w~You finished the challenge.",6000,0);
PlayerPlaySound(playerid,1149,0,0,0);
GivePlayerWeapon(playerid,24,5000);
GivePlayerWeapon(playerid,26,5000);
GivePlayerWeapon(playerid,28,5000);
GivePlayerWeapon(playerid,35,10);
GivePlayerWeapon(playerid,18,10);
SendClientMessage(playerid,0x7CFC00AA,"Reward: Weapons, RPG and Molotovs.");
new string[64];
new name[32];
GetPlayerName(playerid,name,128);
format(string, sizeof(string), "%s finished the challenge: Dive!",name);
SendClientMessageToAll(0x7CFC00AA,string);
}
if(pickupid == divenorth)
{
GameTextForPlayer(playerid,"~r~~h~Congrats!~n~~w~You finished the challenge.",6000,0);
PlayerPlaySound(playerid,1149,0,0,0);
GivePlayerWeapon(playerid,24,5000);
GivePlayerWeapon(playerid,26,5000);
GivePlayerWeapon(playerid,28,5000);
GivePlayerWeapon(playerid,35,10);
GivePlayerWeapon(playerid,18,10);
SendClientMessage(playerid,0x7CFC00AA,"Reward: Weapons, RPG and Molotovs.");
new string[64];
new name[32];
GetPlayerName(playerid,name,128);
format(string, sizeof(string), "%s finished the challenge: Dive!",name);
SendClientMessageToAll(0x7CFC00AA,string);
}
if(pickupid == divemiddle)
{
GameTextForPlayer(playerid,"~r~~h~Congrats!~n~~w~You finished the challenge.",6000,0);
PlayerPlaySound(playerid,1149,0,0,0);
GivePlayerWeapon(playerid,24,5000);
GivePlayerWeapon(playerid,26,5000);
GivePlayerWeapon(playerid,28,5000);
GivePlayerWeapon(playerid,35,10);
GivePlayerWeapon(playerid,18,10);
SendClientMessage(playerid,0x7CFC00AA,"Reward: Weapons, RPG and Molotovs.");
new string[64];
new name[32];
GetPlayerName(playerid,name,128);
format(string, sizeof(string), "%s finished the challenge: Dive!",name);
SendClientMessageToAll(0x7CFC00AA,string);
}
if(pickupid == parachute)
{
GivePlayerWeapon(playerid,46,1);
DestroyPickup(parachute);
SetTimer("paraspawn",5000,false);
}
if(pickupid == LV)
{
PlayerPlaySound(playerid, 1057, 0.0, 0.0, 0.0);
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,2026.4869,1342.3506,10.8203);
SetSpawnInfo(playerid,-1,GetPlayerSkin(playerid),2026.4869,1342.3506,10.8203,270,0,0,0,0,0,0);
SendClientMessage(playerid,0x7CFC00AA,"* Las Venturas.");
SetPlayerFacingAngle(playerid,270);
}
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/dive", cmdtext, true, 10) == 0)
{
SendClientMessage(playerid,0x7CFC00AA,"(Tip)Zoom out your camera and perform slow maneuvers!");
GameTextForPlayer(playerid,"~r~~h~Get down",5000,6);
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid,46,1);
SetPlayerInterior (playerid, 0);
SetPlayerHealth(playerid,100);
SetPlayerArmour(playerid,100);
SetPlayerPos(playerid,1867.1786,-146.1077,2465.8916);
SetPlayerFacingAngle(playerid,270);
SetCameraBehindPlayer(playerid);
SetSpawnInfo(playerid,-1,GetPlayerSkin(playerid),1867.1786,-146.1077,2465.8916,270,46,1,0,0,0,0);
return 1;
}
return 0;
}
#endif