if(newstate == PLAYER_STATE_DRIVER)
{
if(!PlayerInfo[playerid][pCarLic])//pCarLic
{
SendClientMessage(playerid,COLOR_RED,"Du hast kein Führerschein.");
RemovePlayerFromVehicle(playerid);
TogglePlayerControllable(playerid,false);
TogglePlayerControllable(playerid,true);
return 1;
}
}
if(newstate == PLAYER_STATE_DRIVER)
{
if(!PlayerInfo[playerid][pFlyLic])//pFlyLic
{
SendClientMessage(playerid,COLOR_RED,"Du hast kein Flugschein.");
RemovePlayerFromVehicle(playerid);
TogglePlayerControllable(playerid,false);
TogglePlayerControllable(playerid,true);
return 1;
}
}
if(newstate == PLAYER_STATE_DRIVER)
{
if(!PlayerInfo[playerid][pBoatLic])//pBoatLic
{
SendClientMessage(playerid,COLOR_RED,"Du hast kein Bootschein.");
RemovePlayerFromVehicle(playerid);
TogglePlayerControllable(playerid,false);
TogglePlayerControllable(playerid,true);
return 1;
}
}
Warum wird der Spieler nicht vom Auto rausgeworfen wen er kein Führerschein hat?