Hey Leute ich finde den fehler nicht bekomme auch keine Errors man kann in jedem Fraktion car einsteigen egal welche Fraki man ist hier das sollte eig stimmen.
new SCUVehs[10];
if(!IsPlayerInFrac(playerid, 11) && TakingLesson[playerid] != 1)
{
for(new pv = 0; pv < sizeof(SCUVehs); pv++)
{
if(newcar == SCUVehs[pv])
{
SendClientMessage(playerid, Rot, "Du hast keine Schlüssel für die SCU Fahrzeug!");
RemovePlayerFromVehicle(playerid);
TogglePlayerControllable(playerid,false);
TogglePlayerControllable(playerid,true);
return 1;
}
}
}
SCUVehs[0]=CreateVehicle(411,1600.4531,-1804.9077,13.1648,267.4336,0,0,-1); // infernus
SCUVehs[1]=CreateVehicle(451,1600.9547,-1792.0248,13.0787,259.6823,0,0,-1); // turismo
SCUVehs[2]=CreateVehicle(415,1600.9885,-1815.6357,13.3658,269.1329,0,0,-1); // cheetah
SCUVehs[3]=CreateVehicle(415,1600.2946,-1812.0477,13.3602,269.8283,0,0,-1); // cheetah
SCUVehs[4]=CreateVehicle(579,1602.0419,-1786.7559,13.2965,257.4586,0,0,-1); // huntley
SCUVehs[5]=CreateVehicle(560,1602.8257,-1782.7954,13.1366,255.8873,0,0,-1); // sultan
SCUVehs[6]=CreateVehicle(579,1603.9551,-1779.1317,13.4436,254.5515,0,0,-1); // sultan
SCUVehs[7]=CreateVehicle(487,1675.4670,-1846.9309,28.3087,180.3453,0,0,-1); // heli
SCUVehs[8]=CreateVehicle(522,1647.3667,-1806.2473,13.1113,105.1011,0,0,-1); // SCU NRG
SCUVehs[9]=CreateVehicle(541,1641.0582,-1840.8899,13.1676,39.0598,0,0,-1); // SCU bullet