18.06.2010, 01:47
Put this at the top of your scirpt
Then this somewhere in your scirpt
Put this in your /lock command
pawn Code:
new VehLocked[MAX_PLAYERS];
pawn Code:
public OnVehicleStreamIn(vehicleid, forplayerid)
{
if(VehLocked[vehicleid] == 1)
{
{
SetVehicleParamsForPlayer(vehicleid,forplayerid, 0, 1);
}
} else {
{
SetVehicleParamsForPlayer(vehicleid,forplayerid, 0, 0);
}
}
return 1;
}
pawn Code:
VehLocked[vehicleid] = 1;