15.01.2011, 12:03
Hello, i have a little problem with SetvehicleParamsEx.
After respawn vehicle gets locked, i can enter it, but i have a code which remove player from vehicle if vehicle is locked. Can anyone help me?
After respawn vehicle gets locked, i can enter it, but i have a code which remove player from vehicle if vehicle is locked. Can anyone help me?
pawn Код:
public OnVehicleSpawn(vehicleid)
{
new engine, lights, alarm, doors, boot, boonet, objective;
GetVehicleParamsEx( vehicleid, engine, lights, alarm, doors, boot, boonet, objective );
SetVehicleParamsEx( vehicleid, 0, 0, 0, 0, 0, 0, 0 );
vehicleDB[ vehicleid ][ gyv ] = 1000.0;
vehicleDB[ vehicleid ][ gas ] = 40;
return 1;
}