16.06.2019, 16:00
Hello. I wanted to remind myself how it's done when getting into a vehicle, it popped up the message that "You do not have a driving license, you decide to leave the vehicle!". How to make it work well?
Code:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) //test123 { if(playerid == 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; }