Little question about vehicles denied - 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: Little question about vehicles denied (
/showthread.php?tid=89440)
Little question about vehicles denied -
Ben147 - 02.08.2009
SOLVED
Re: Little question about vehicles denied -
Rizard - 02.08.2009
I'm not realy sure hat you are trying to do here, but it sure ain't locking vehicles?
this is a way to lock vehicles i think;
pawn Код:
public OnPlayerConnect()
{
SetVehicleParamsForPlayer(vehicleid*,playerid,true); //true is locked, false is unlocked
}
A way to get the vehicle id is not the type of vehicle like 593 or 417 (types) but for example:
pawn Код:
public OnPlayerStateChange()
{
format(str, 128, "VehicleID: %d", GetPlayerVehicleID(playerid));
SendClientMessage(playerid, 0xF0DC82FF, str);
}
Enter each car you want to be locked to get the ID, then delete my second code and add more SetVehicleParamsForPlayer(vehicleID,playerid,true) ;
Re: Little question about vehicles denied -
Ben147 - 03.08.2009
No, you dont understand me i want to do that if im in helicopter the blinker is not work.
but when i tryed to denied the blinker from the helicopter its still working i saw my code.
that if
Код:
if (vehicle!=593||vehicle!=417||vehicle!=487||vehicle!=497||vehicle!=488)
{
is not working in the game still that vehicles ids can use blinker.
Re: Little question about vehicles denied -
Backwardsman97 - 03.08.2009
Try this.
pawn Код:
if (vehicle!=593 && vehicle!=417 && vehicle!=487 && vehicle!=497 && vehicle!=488)
Re: Little question about vehicles denied -
Ben147 - 03.08.2009
Works Thanks.