02.08.2009, 12:14
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;
A way to get the vehicle id is not the type of vehicle like 593 or 417 (types) but for example:
Enter each car you want to be locked to get the ID, then delete my second code and add more SetVehicleParamsForPlayer(vehicleID,playerid,true) ;
this is a way to lock vehicles i think;
pawn Код:
public OnPlayerConnect()
{
SetVehicleParamsForPlayer(vehicleid*,playerid,true); //true is locked, false is unlocked
}
pawn Код:
public OnPlayerStateChange()
{
format(str, 128, "VehicleID: %d", GetPlayerVehicleID(playerid));
SendClientMessage(playerid, 0xF0DC82FF, str);
}

