Little question about vehicles denied
#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


Messages In This Thread
Little question about vehicles denied - by Ben147 - 02.08.2009, 05:48
Re: Little question about vehicles denied - by Rizard - 02.08.2009, 12:14
Re: Little question about vehicles denied - by Ben147 - 03.08.2009, 05:31
Re: Little question about vehicles denied - by Backwardsman97 - 03.08.2009, 06:06
Re: Little question about vehicles denied - by Ben147 - 03.08.2009, 10:23

Forum Jump:


Users browsing this thread: 1 Guest(s)