man kann trotzdem einsteigen und fahren
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
for(new i=0;i<sizeof(LSPDVehs);i++)
{
if(vehicleid == LSPDVehs[i] && !ispassenger)
{
if(Spieler[playerid][frac] == 1 || Spieler[playerid][fracleader] == 1){
}else{
SendClientMessage(playerid,Orange,"Du hast keine Schlüssel");
TogglePlayerControllable(playerid,false);
TogglePlayerControllable(playerid,true);
}
for(new i=0;i<sizeof(MSCVehs);i++)
{
if(vehicleid == MSCVehs[i] && !ispassenger){
if(Spieler[playerid][frac] == 2 || Spieler[playerid][fracleader] == 2){
}else{
SendClientMessage(playerid,Orange,"Du hast keine Schlüssel");
TogglePlayerControllable(playerid,false);
TogglePlayerControllable(playerid,true);
}
}
}
}
}
}