Driving license
#2

Try this. I didn't test it.
pawn Code:
public OnPlayerStateChange(playerid, newstate, oldstate){
    if(newstate == PLAYER_STATE_DRIVER){
        if(PlayerInfo[playerid][pDrivingLicense] == 0){
            SendClientMessage(playerid, -1, "You do not have a driving license, you decide to leave the vehicle!");
            RemovePlayerFromVehicle(playerid);
        }
    }
    return 1;
}
Reply


Messages In This Thread
Driving license - by KamilPolska - 16.06.2019, 16:00
Re: Driving license - by Zipfer247 - 16.06.2019, 16:11
Re: Driving license - by KamilPolska - 16.06.2019, 16:32
Re: Driving license - by Stev - 16.06.2019, 16:36
Re: Driving license - by KamilPolska - 16.06.2019, 16:41
Re: Driving license - by SiaReyes - 16.06.2019, 21:02
Re: Driving license - by KamilPolska - 16.06.2019, 22:33
Re: Driving license - by SiaReyes - 17.06.2019, 08:12

Forum Jump:


Users browsing this thread: 1 Guest(s)