16.04.2011, 18:38
ok so i want to stop player from driving vehicle
i got this
But the problem is that when playerid 0 enters the vehicle nothing happesn but when playerid 1+
enter's the vehicle it only shows "You Are Not Qualified To Drive This Vehicle !!!"
So what is the probblem ?
NOTE
i also tried like this
i got this
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
new vehicle = vehicle = GetPlayerVehicleID(playerid);
if(vehicle == 433)
{
SendClientMessage(playerid,YELLOW,"You Are Not Qualified To Drive This Vehicle !!!");
RemovePlayerFromVehicle(playerid);
}
}
enter's the vehicle it only shows "You Are Not Qualified To Drive This Vehicle !!!"
So what is the probblem ?
NOTE
i also tried like this
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
if(vehicleid== 433)
{
SendClientMessage(playerid,YELLOW,"You Are Not Qualified To Drive This Vehicle !!!");
RemovePlayerFromVehicle(playerid);
}
}