24.08.2011, 16:24
(
Last edited by iggy1; 24/08/2011 at 04:41 PM.
Reason: had to change "playerid" to "forplayerid"
)
There is a bug with locking doors, if the vehicle is locked for a player and then the vehicle is streamed out- it will then be unlocked (when streamed in). There is a workaround by locking the vehicle inside the "OnVehicleStreamIn" callback.
EG,
EDIT: Sorry i used playerid instead of forplayerid.
EG,
pawn Code:
public OnVehicleStreamIn(vehicleid, forplayerid)
{
if(gVehicleLocked[vehicleid]) //swap this for the var you use to check if the vehicle is locked
SetVehicleParamsForPlayer(vehicleid, forplayerid, 0, 1);
return 1;
}