if(newcar == HitmanLeaderBullet && PlayerInfo[playerid][pLeader] != 8)
{
SendClientMessage(playerid,COLOR_WHITE," Dieser Wagen ist Eigentum der Hitmen!");
RemovePlayerFromVehicle(playerid);
}
if(GetVehicleModel(newcar) == 525 && !IsPlayerInFrac(playerid,24))
{
SendClientMessage(playerid,COLOR_WHITE," Dieser Wagen ist Eigentum der Abschleppfirma!");
RemovePlayerFromVehicle(playerid);
}
if(!IsPlayerInFrac(playerid,5))
{
for(new pv = 0; pv < sizeof(LCNVehs); pv++)
{
if(newcar == LCNVehs[pv])
{
SendClientMessage(playerid,COLOR_RED,"Du hast keine Schlüssel!");
RemovePlayerFromVehicle(playerid);
}
}
}
if(!IsPlayerInFrac(playerid,6))
{
for(new pv = 0; pv < sizeof(YakuzaVehs); pv++)
{
if(newcar == YakuzaVehs[pv])
{
SendClientMessage(playerid,COLOR_RED,"Du hast keine Schlüssel!");
RemovePlayerFromVehicle(playerid);
}
}
}
if(!IsPlayerInFrac(playerid,7))
{
for(new pv = 0; pv < sizeof(PraesiVehs); pv++)
{
if(newcar == PraesiVehs[pv])
{
RemovePlayerFromVehicle(playerid);
TogglePlayerControllable(playerid,false);
TogglePlayerControllable(playerid,true);
}
}
}
if(!IsPlayerInFrac(playerid,8))
{
for(new pv = 0; pv < sizeof(HitmanVehs); pv++)
{
if(newcar == HitmanVehs[pv])
{
SendClientMessage(playerid,COLOR_RED,"Du hast keine Schlüssel!");
RemovePlayerFromVehicle(playerid);
TogglePlayerControllable(playerid,false);
TogglePlayerControllable(playerid,true);
}
}
}
if(!IsPlayerInFrac(playerid,9))
{
for(new pv = 0; pv < sizeof(NewsVehs); pv++)
{
if(newcar == NewsVehs[pv])
{
SendClientMessage(playerid,COLOR_RED,"Du hast keine Schlüssel!");
RemovePlayerFromVehicle(playerid);
TogglePlayerControllable(playerid,false);
TogglePlayerControllable(playerid,true);
}
}
}
if(!IsPlayerInFrac(playerid,10))
{
for(new pv = 0; pv < sizeof(TaxiVehs); pv++)
{
if(newcar == TaxiVehs[pv])
{
SendClientMessage(playerid,COLOR_RED,"Du hast keine Schlüssel!");
RemovePlayerFromVehicle(playerid);
TogglePlayerControllable(playerid,false);
TogglePlayerControllable(playerid,true);
}
}
}
if(!IsPlayerInFrac(playerid,12))
{
for(new pv = 0; pv < sizeof(FuegosVehs); pv++)
{
if(newcar == FuegosVehs[pv])
{
SendClientMessage(playerid,COLOR_RED,"Du hast keine Schlüssel!");
RemovePlayerFromVehicle(playerid);
TogglePlayerControllable(playerid,false);
TogglePlayerControllable(playerid,true);
}
}
}
if(!IsPlayerInFrac(playerid,13))
{
for(new pv = 0; pv < sizeof(GroveVehs); pv++)
{
if(newcar == GroveVehs[pv])
{
SendClientMessage(playerid,COLOR_RED,"Du hast keine Schlüssel!");
RemovePlayerFromVehicle(playerid);
TogglePlayerControllable(playerid,false);
TogglePlayerControllable(playerid,true);
}
}
}
if(!IsPlayerInFrac(playerid,18))
{
for(new pv = 0; pv < sizeof(RifaVehs); pv++)
{
if(newcar == RifaVehs[pv])
{
SendClientMessage(playerid,COLOR_RED,"Du hast keine Schlüssel!");
RemovePlayerFromVehicle(playerid);
TogglePlayerControllable(playerid,false);
TogglePlayerControllable(playerid,true);
}
}
}
if(!IsPlayerInFrac(playerid,14))
{
for(new pv = 0; pv < sizeof(BallasVehs); pv++)
{
if(newcar == BallasVehs[pv])
{
SendClientMessage(playerid,COLOR_RED,"Du hast keine Schlüssel!");
RemovePlayerFromVehicle(playerid);
TogglePlayerControllable(playerid,false);
TogglePlayerControllable(playerid,true);
}
}
}
if(!IsPlayerInFrac(playerid,21))
{
for(new pv = 0; pv < sizeof(WheelVehs); pv++)
{
if(newcar == WheelVehs[pv])
{
SendClientMessage(playerid,COLOR_RED,"Du hast keine Schlüssel!");
RemovePlayerFromVehicle(playerid);
TogglePlayerControllable(playerid,false);
TogglePlayerControllable(playerid,true);
}
}
}
if(!IsPlayerInFrac(playerid,15))
{
for(new pv = 0; pv < sizeof(LSBC); pv++)
{
if(newcar == LSBC[pv])
{
SendClientMessage(playerid,COLOR_RED,"Du hast keine Schlüssel!");
RemovePlayerFromVehicle(playerid);
TogglePlayerControllable(playerid,false);
TogglePlayerControllable(playerid,true);
}
}
}
if(!IsPlayerInFrac(playerid,16))
{
for(new pv = 0; pv < sizeof(VagosVehs); pv++)
{
if(newcar == VagosVehs[pv])
{
SendClientMessage(playerid,COLOR_RED,"Du hast keine Schlüssel!");
RemovePlayerFromVehicle(playerid);
TogglePlayerControllable(playerid,false);
TogglePlayerControllable(playerid,true);
}
}
}
if(PlayerInfo[playerid][pJob] != 16)
{
for(new pv = 0; pv < sizeof(PilotenVehs); pv++)
{
if(newcar == PilotenVehs[pv])
{
SendClientMessage(playerid,COLOR_RED,"Damit können nur Piloten fliegen!");
RemovePlayerFromVehicle(playerid);
TogglePlayerControllable(playerid,false);
TogglePlayerControllable(playerid,true);
}
}
}
if(!IsPlayerInFrac(playerid,17))
{
for(new pv = 0; pv < sizeof(AztecasVehs); pv++)
{
if(newcar == AztecasVehs[pv])
{
SendClientMessage(playerid,COLOR_RED,"Du hast keine Schlüssel!");
RemovePlayerFromVehicle(playerid);
TogglePlayerControllable(playerid,false);
TogglePlayerControllable(playerid,true);
}
}
}
if(!IsPlayerInFrac(playerid,19))
{
for(new pv = 0; pv < sizeof(RSVehs); pv++)
{
if(newcar == RSVehs[pv])
{
SendClientMessage(playerid,COLOR_RED,"Du hast keine Schlüssel!");
RemovePlayerFromVehicle(playerid);
TogglePlayerControllable(playerid,false);
TogglePlayerControllable(playerid,true);
}
}
}
if(!IsPlayerInFrac(playerid,20))
{
for(new pv = 0; pv < sizeof(TerrorVehs); pv++)
{
if(newcar == TerrorVehs[pv])
{
SendClientMessage(playerid,COLOR_RED,"Du hast keine Schlüssel!");
RemovePlayerFromVehicle(playerid);
TogglePlayerControllable(playerid,false);
TogglePlayerControllable(playerid,true);
}
}
}
if(!IsPlayerInFrac(playerid, 11) && TakingLesson[playerid] != 1)
{
for(new pv = 0; pv < sizeof(FahrschulVehs); pv++)
{
if(newcar == FahrschulVehs[pv])
{
SendClientMessage(playerid, COLOR_RED, "Du hast keine Schlüssel!");
RemovePlayerFromVehicle(playerid);
TogglePlayerControllable(playerid,false);
TogglePlayerControllable(playerid,true);
}
}
}
if(!IsPlayerInFrac(playerid,23))
{
for(new pv = 0; pv < sizeof(RMVehs); pv++)
{
if(newcar == RMVehs[pv])
{
SendClientMessage(playerid,COLOR_RED,"Du hast keine Schlüssel!");
RemovePlayerFromVehicle(playerid);
TogglePlayerControllable(playerid,false);
TogglePlayerControllable(playerid,true);
}
}
}
if(!IsPlayerInFrac(playerid,24))
{
for(new pv = 0; pv < sizeof(oAmtVehs); pv++)
{
if(newcar == oAmtVehs[pv])
{
SendClientMessage(playerid,COLOR_RED,"Du hast keine Schlüssel!");
RemovePlayerFromVehicle(playerid);
TogglePlayerControllable(playerid,false);
TogglePlayerControllable(playerid,true);
}
}
}
if(IsACopCar(newcar))
{
if(IsACop(playerid) || IsPlayerInFrac(playerid,23)) { }
else { RemovePlayerFromVehicle(playerid); }
}
if(IsABundeswehrCar(newcar))
{
if(IsPlayerInFrac(playerid,3)|| PlayerInfo[playerid][pLeader] == 7) { }
else { RemovePlayerFromVehicle(playerid); }
}
if(IsAnAmbulance(newcar))
{
if(PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4 || PlayerInfo[playerid][pLeader] == 22 || PlayerInfo[playerid][pMember] == 22) { }
else { RemovePlayerFromVehicle(playerid); }
}
if(PlayerKarting[playerid] != 0)
{
new kart = GetPlayerVehicleID(playerid);
if(kart==110||kart==111||kart==112||kart==113||kart==114||kart==115)
{
PlayerInKart[playerid] = 1;
KartingPlayers ++;
}
}
if(GetVehicleModel(newcar) == 582 || GetVehicleModel(newcar) == 488)