SA-MP Forums Archive
[HELP] Bugged Lock ( help please ) - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [HELP] Bugged Lock ( help please ) (/showthread.php?tid=95426)



[HELP] Bugged Lock ( help please ) - silvan - 03.09.2009

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...


Re: [HELP] Bugged Lock ( help please ) - dice7 - 03.09.2009

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



Re: [HELP] Bugged Lock ( help please ) - Zeex - 03.09.2009

https://sampwiki.blast.hk/wiki/SetVehicleParamsForPlayer


Re: [HELP] Bugged Lock ( help please ) - silvan - 06.09.2009

thanks guys.