Vehicle spawn engine
#1

Well how can i make when player enters a vehicle, the engines is off? i used this
pawn Код:
public OnVehicleSpawn(vehicleid)
{
    for(new i=0;i<MAX_VEHICLES;i++) {
    vEngine[i] = 1;
    }
    return 1;
}
But when i enter a vehicle the engine is automatically on
Reply
#2

pawn Код:
new engine, lights, alarm, doors, bonnet, boot, objective;
GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);
SetVehicleParamsEx(vehicleid, 0, lights, false, doors, bonnet, boot, objective);
Just add this and it will turn the engine off
Reply
#3

I already have them on top of script -_-, /engine works but i want the vehicles engine to be on vEngine[vid] = 1; when a vehicle spawns
Reply
#4

if you want engine to idle once vehicle spawns just add
GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);
SetVehicleParamsEx(vehicleid, 1, lights, false, doors, bonnet, boot, objective);

Under OnVehicleSpawn(vehicleid)
Reply
#5

Damn i did taht dimi but it wont work still
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)