Wenn die kein führerschein haben und auto fahren wollten sollen sie wieder aussteigen aber die können los fahren
hoffe ihr konnt mir das so umbauen
Function OnPlayerStateChange(playerid, newstate, oldstate)
{
M_OnPlayerStateChange(playerid, newstate, oldstate);
new string[256];
if(newstate == PLAYER_STATE_DRIVER || newstate == PLAYER_STATE_PASSENGER)
{
if(newstate == PLAYER_STATE_DRIVER)
{
if(PlayerInfo[playerid][pCarLic] == 0 || PlayerInfo[playerid][pFlyLic] == 0 || PlayerInfo[playerid][pBoatLic] == 0 || PlayerInfo[playerid][pLKWLic] == 0 || PlayerInfo[playerid][pMotoLic] == 0 || PlayerInfo[playerid][pRollerLic] == 0)
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid,-1, "Du hast kein Führerschein");
TogglePlayerControllable(playerid,0);
return 1;
}
return 1;
}