Driving license
#6

Just Get the player pos and set the player pos!

pawn Code:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) //test123
{
    if(playerid == vehicleid)
    {
        if(PlayerInfo[playerid][DrivingLicense] == 0)
        {
                     new Float:POS[3];
                    GetPlayerPos(playerid, POS[0], POS[1], POS[2]);
                     SetPlayerPos(playerid, POS[0], POS[1], POS[2]);
            SendClientMessage(playerid, -1, "You do not have a driving license, you decide to leave the vehicle!");
                      return true;
        }
    }

    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)