#include <Streamer>
#include <a_samp>
new Bruecke1;
new Bruecke2;
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Blank Filterscript by your name here");
print("--------------------------------------\n");
// Airport pickup
AddStaticPickup(1318, 23, -1855.8922,44.3471,1055.1891);
AddStaticPickup(1318, 23, 344.1052,-4239.4648,6.7435);
// Brücke
Bruecke1 = CreateDynamicObject(18450, -1823.92920, -2878.72803, 6.41025, 0.00000, 0.00000, 291.00000); // Straße 1
Bruecke2 = CreateDynamicObject(18450, -1839.10962, -2884.54297, 6.43052, 0.00000, 0.00000, 291.00000); // Straße 2
// San Island Airport
AddStaticVehicle(511,109.3585,-4509.1680,8.1217,268.7758,3,1); //
AddStaticVehicle(511,113.7377,-4571.1436,8.1175,271.6784,3,1); //
AddStaticVehicle(519,166.7327,-4632.9849,7.6718,357.9502,1,3); //
AddStaticVehicle(577,240.2238,-4624.5059,6.6663,180.4579,3,1); //
AddStaticVehicle(593,105.9132,-4445.4014,7.2002,272.2659,3,1); //
AddStaticVehicle(593,104.8244,-4415.4673,7.1970,269.0861,3,1); //
AddStaticVehicle(593,105.2654,-4385.8584,7.2084,268.2473,3,1); //
AddStaticVehicle(592,326.7793,-4630.1099,7.9459,180.3304,3,1); //
AddStaticVehicle(553,385.1713,-4397.4019,8.0768,142.8029,3,1); //
AddStaticVehicle(553,358.8185,-4376.0732,8.0805,142.7089,3,1); //
AddStaticVehicle(485,306.9980,-4648.4180,6.4009,5.1761,3,1); //
AddStaticVehicle(485,301.9545,-4648.3296,6.3993,358.4408,1,1); //
AddStaticVehicle(607,315.2568,-4654.0005,6.8024,0.4313,1,1); //
AddStaticVehicle(607,318.1055,-4653.9507,6.8083,0.6099,1,1); //
AddStaticVehicle(606,318.0216,-4646.5781,6.8103,0.5387,3,1); //
AddStaticVehicle(606,315.1693,-4646.4971,6.8023,359.8620,3,1); //
AddStaticVehicle(583,302.3387,-4654.0078,6.2869,359.0243,3,1); //
AddStaticVehicle(583,307.6196,-4653.9531,6.2800,359.9344,3,1); //
// Alte Autos Neben der Bank Island
AddStaticVehicle(542,1110.3336,-3940.1929,10.2266,263.9940,8,8); //
AddStaticVehicle(589,1111.4219,-3944.5837,10.0219,265.4895,3,3); //
AddStaticVehicle(604,1113.1826,-3948.9080,9.9793,270.3755,7,7); //
AddStaticVehicle(605,1113.9933,-3952.7869,9.9525,272.3124,2,2); //
AddStaticVehicle(603,1115.4587,-3957.1433,9.8486,274.5560,4,4); //
AddStaticVehicle(600,1117.0090,-3961.4211,9.6027,277.4107,6,6); //
AddStaticVehicle(576,1119.1042,-3965.5347,9.3712,280.2676,3,3); //
AddStaticVehicle(549,1120.5964,-3969.7644,9.3377,281.1199,1,3); //
AddStaticVehicle(412,1123.1261,-3973.6628,9.3518,283.9490,3,3); //
// San Island Autohaus Fahrzeuge
AddStaticVehicle(497,-1676.7009,701.1096,30.7905,182.1460,1,1); //
AddStaticVehicle(497,-1686.8505,701.1221,30.8512,180.5718,1,1); //
AddStaticVehicle(411,567.8851,-4230.2271,7.3157,155.7124,7,7); //
AddStaticVehicle(522,563.0861,-4230.5068,7.1428,352.6763,6,5); //
AddStaticVehicle(560,558.5177,-4232.9082,7.2959,34.8185,0,0); //
AddStaticVehicle(412,545.3293,-4232.5308,7.4104,3.1873,0,1); //
AddStaticVehicle(422,539.5732,-4233.5615,7.5833,30.0053,8,8); //
AddStaticVehicle(580,532.6317,-4235.2886,7.3883,338.2704,1,5); //
AddStaticVehicle(560,528.8180,-4235.0508,7.2901,328.9303,1,17); //
AddStaticVehicle(418,527.0545,-4216.1230,6.8318,35.4004,2,2); //
AddStaticVehicle(445,533.6018,-4216.0103,6.5877,23.0420,1,1); //
AddStaticVehicle(410,537.5717,-4216.0791,6.3656,27.1686,6,6); //
AddStaticVehicle(400,542.6810,-4215.6211,6.8272,34.4452,1,4); //
AddStaticVehicle(507,548.6558,-4214.7466,6.6010,1.1184,17,17); //
AddStaticVehicle(401,555.8525,-4216.0225,6.4864,327.8254,0,0); //
AddStaticVehicle(405,562.6459,-4216.0264,6.5852,325.1032,1,3); //
AddStaticVehicle(466,571.8959,-4215.5635,6.4651,324.7878,1,1); //
AddStaticVehicle(479,562.2421,-4207.3369,6.5225,81.5114,1,5); //
AddStaticVehicle(404,554.9428,-4206.5571,6.4669,83.5977,1,5); //
AddStaticVehicle(533,548.3815,-4206.1870,6.4416,90.0220,0,1); //
AddStaticVehicle(462,543.5297,-4206.1108,6.3316,88.0912,1,1); //
return 1;
}
public OnFilterScriptExit()
{
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)
{
// Geheimbase
RemoveBuildingForPlayer(playerid, 4080, 1787.1328, -1565.6797, 11.9688, 0.25);
RemoveBuildingForPlayer(playerid, 4000, 1787.1328, -1565.6797, 11.9688, 0.25);
// San Island
RemoveBuildingForPlayer(playerid, 3688, 2450.8750, -2680.4531, 17.7891, 0.25);
RemoveBuildingForPlayer(playerid, 1278, 2406.5469, -2695.0156, 26.6719, 0.25);
RemoveBuildingForPlayer(playerid, 3621, 2450.8750, -2680.4531, 17.7891, 0.25);
RemoveBuildingForPlayer(playerid, 6464, 379.0625, -2065.0234, 11.7969, 0.25);
RemoveBuildingForPlayer(playerid, 1529, 399.0078, -2066.8828, 11.2344, 0.25);
RemoveBuildingForPlayer(playerid, 1215, 360.4531, -2086.6719, 7.3750, 0.25);
RemoveBuildingForPlayer(playerid, 1308, 353.0156, -2081.1875, 6.5938, 0.25);
RemoveBuildingForPlayer(playerid, 1280, 368.9297, -2083.2656, 7.2109, 0.25);
RemoveBuildingForPlayer(playerid, 1308, 353.0156, -2050.4844, 6.5938, 0.25);
RemoveBuildingForPlayer(playerid, 6466, 374.6953, -2054.8828, 8.7031, 0.25);
RemoveBuildingForPlayer(playerid, 1232, 374.7969, -2046.9375, 9.5000, 0.25);
RemoveBuildingForPlayer(playerid, 1280, 378.4609, -2083.2656, 7.2109, 0.25);
RemoveBuildingForPlayer(playerid, 1215, 379.7422, -2086.8594, 7.3750, 0.25);
RemoveBuildingForPlayer(playerid, 1215, 381.0313, -2070.9375, 7.3750, 0.25);
RemoveBuildingForPlayer(playerid, 6283, 379.0625, -2065.0234, 11.7969, 0.25);
RemoveBuildingForPlayer(playerid, 1215, 379.5938, -2055.1016, 7.3750, 0.25);
RemoveBuildingForPlayer(playerid, 1215, 386.5703, -2061.9531, 7.3750, 0.25);
RemoveBuildingForPlayer(playerid, 1215, 386.5703, -2049.3516, 7.3750, 0.25);
RemoveBuildingForPlayer(playerid, 1340, 388.8594, -2071.6641, 7.9453, 0.25);
RemoveBuildingForPlayer(playerid, 1280, 390.2031, -2083.2656, 7.2109, 0.25);
RemoveBuildingForPlayer(playerid, 1215, 400.3906, -2086.4219, 7.3750, 0.25);
RemoveBuildingForPlayer(playerid, 1308, 400.7578, -2081.1875, 6.5938, 0.25);
RemoveBuildingForPlayer(playerid, 1308, 400.7578, -2050.4844, 6.5938, 0.25);
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
return 1;
}
public OnPlayerSpawn(playerid)
{
return 1;
}
public OnPlayerDeath(playerid, killerid, reason)
{
return 1;
}
public OnVehicleSpawn(vehicleid)
{
return 1;
}
public OnVehicleDeath(vehicleid, killerid)
{
return 1;
}
public OnPlayerText(playerid, text[])
{
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/pgate", cmdtext, true, 10) == 0)
{
MoveObject(Bruecke1, -1823.92920, -2878.72803, 6.41025, 3.0);//This will move the gate
MoveObject(Bruecke2, -1839.10962, -2884.54297, 52.83759, 3.0);//This will move the gate
}
return 1;
}
if (strcmp("/pgateclose", cmdtext, true, 10) == 0)
{
MoveObject(Bruecke1, -1823.92920, -2878.72803, 6.41025, 3.0);//This will move the gate back to the old position
MoveObject(Bruecke2, -1839.10962, -2884.54297, 6.43052, 3.0);//This will move the gate back to the old position
return 1;
}
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)
{
if(newkeys == KEY_SECONDARY_ATTACK)
{
if(IsPlayerInRangeOfPoint(playerid,4.0,344.1052,-4239.4648,6.7435))//Airport /enter
{
SetPlayerPos(playerid,-1855.8922,44.3471,1055.1891);
SetPlayerInterior(playerid,14);
SetPlayerFacingAngle(playerid,358.0127);
}
else if (IsPlayerInRangeOfPoint(playerid,4.0,-1855.8922,44.3471,1055.1891))//Airport /exit
{
SetPlayerPos(playerid,344.1052,-4239.4648,6.7435);
SetPlayerInterior(playerid,0);
SetPlayerFacingAngle(playerid,182.0084);
}
}
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;
}
Alles anzeigen