16.06.2019, 21:02
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;
}