[HELP] Bugged Lock ( help please )
#1

public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
if(ispassenger == 0)
{
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 496)
{
SendClientMessage(playerid,COLOR_BRIGHTRED,"You are not allowed to drive this type of vehicle!");
TogglePlayerControllable(playerid,0);
RemovePlayerFromVehicle(playerid);
TogglePlayerControllable(playerid,1);
return 1;
}
}
}

This is not working, anyone can tell me what's wrong with this? i want it only to work for blista combat...
Reply
#2

Use the vehicle id which is passed in this callback
pawn Код:
(GetVehicleModel(vehicleid) == 496)
Reply
#3

https://sampwiki.blast.hk/wiki/SetVehicleParamsForPlayer
Reply
#4

thanks guys.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)