16.06.2019, 16:32
Thank you also works nicely. 
It works but I'm not sure if this is correct for this public.
Or

It works but I'm not sure if this is correct for this public.
Code:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) //test123 { if(vehicleid) { if(PlayerInfo[playerid][DrivingLicense] == 0) { SendClientMessage(playerid, -1, "You do not have a driving license, you decide to leave the vehicle!"); ClearAnimations(playerid); } } return 1; }
Code:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) //test123 { if(PlayerInfo[playerid][DrivingLicense] == 0) { SendClientMessage(playerid, -1, "You do not have a driving license, you decide to leave the vehicle!"); ClearAnimations(playerid); } return 1; }