MedicVehs[1] = AddStaticVehicle(416,2007.8511,-1412.2158,17.1417,137.9465,3,1); // KW
MedicVehs[2] = AddStaticVehicle(416,2013.2157,-1412.5448,17.1420,135.5473,3,1); // KW
MedicVehs[3] = AddStaticVehicle(416,2018.4023,-1412.1364,17.1414,140.2558,3,1); // KW
MedicVehs[4] = AddStaticVehicle(416,2039.3420,-1414.7124,17.2285,128.0960,3,1); // KW
MedicVehs[5] = AddStaticVehicle(416,2039.9087,-1418.9587,17.2880,125.5415,3,1); // KW
MedicVehs[6] = AddStaticVehicle(416,2039.7993,-1423.9288,17.2281,122.0320,3,1); // KW
MedicVehs[7] = AddStaticVehicle(563,2065.1958,-1430.3556,49.0427,91.4199,3,1); // KH
MedicVehs[8] = AddStaticVehicle(563,2064.3223,-1416.1737,49.0372,88.2369,3,1); // KH
MedicVehs[9] = AddStaticVehicle(416,1126.6592,-1331.0325,13.2284,359.8933,3,1);// KW AB HIER FÄNGT DAS NEUE KH AN!
MedicVehs[10] = AddStaticVehicle(416,1121.3715,-1331.0393,13.2280,0.1826,3,1);// KW
MedicVehs[11] = AddStaticVehicle(416,1113.3273,-1331.0635,13.2247,359.7388,3,1);// KW
MedicVehs[12] = AddStaticVehicle(416,1108.4552,-1331.0746,13.2252,359.8815,3,1);// KW
MedicVehs[13] = AddStaticVehicle(416,1100.5065,-1331.0795,13.2471,359.3771,3,1);// KW
MedicVehs[14] = AddStaticVehicle(416,1095.1155,-1331.0785,13.2253,359.6681,3,1);// KW
MedicVehs[15] = AddStaticVehicle(416,1177.0338,-1339.0184,14.0727,269.4618,3,1);// KW
MedicVehs[16] = AddStaticVehicle(416,1177.0341,-1308.6484,14.0164,269.7692,3,1);// KW
MedicVehs[17] = AddStaticVehicle(563,1165.0863,-1367.6415,27.3455,268.9052,3,1); // Krankenhubschrauber1
MedicVehs[18] = AddStaticVehicle(563,1163.0919,-1353.2617,27.3817,271.0845,3,1); // Krankenhubschrauber2
MedicVehs[19] = AddStaticVehicle(596,1182.0691,-1315.4785,13.2931,179.5356,3,1); // Krankenfahrzeug1
MedicVehs[20] = AddStaticVehicle(596,1181.9410,-1332.1720,13.3034,0.5346,3,1); // Krankenfahrzeug2
MedicVehs[21] = AddStaticVehicle(596,1106.3260,-1313.8777,13.4047,179.0079,3,1); // krankenfahrzeug3
MedicVehs[22] = AddStaticVehicle(596,1102.3462,-1313.9137,13.4053,178.1248,3,1); // krankenfahrzeug4
MedicVehs[23] = AddStaticVehicle(596,1098.4636,-1313.7352,13.4049,177.8076,3,1); // krankenfahrzeug5
MedicVehs[24] = AddStaticVehicle(596,1093.7429,-1313.5320,13.4008,178.6439,3,1); // krankenfahrzeug6
MedicVehs[25] = AddStaticVehicle(598,1104.7859,-1331.9502,13.5338,359.0201,3,1); // Krankenfahrzeug1
MedicVehs[26] = AddStaticVehicle(598,1117.9431,-1331.8254,13.5266,0.2487,3,1); // Krankenfahrzeug2
MedicVehs[27] = AddStaticVehicle(490,1148.0547,-1314.7065,13.8040,358.9577,3,1); // Krankenranger1
MedicVehs[28] = AddStaticVehicle(490,1148.3154,-1304.6433,13.8127,359.7216,3,1); // Krankenranger2
MedicVehs[29] = AddStaticVehicle(599,1130.6707,-1330.6422,13.8000,358.9281,3,1); // Krankenranger3
if (IsAnAmbulance(vehicleid) && !ispassenger)
{
if(IsPlayerInFrac(playerid,4) || IsPlayerInFrac(playerid,22)) {}
else
{
SendClientMessage(playerid,COLOR_RED,"Du hast keine Schlüssel");
TogglePlayerControllable(playerid, 1); //Stoppt Betreten des Autos
}
}
}