Little question about vehicles denied
#1

SOLVED
Reply
#2

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) ;
Reply
#3

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.
Reply
#4

Try this.

pawn Код:
if (vehicle!=593 && vehicle!=417 && vehicle!=487 && vehicle!=497 && vehicle!=488)
Reply
#5

Works Thanks.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)