Frozen Car
#1

How do the vehicle will be frozen as it would be impossible to drive it even if driving the vehicle?
Thanks for the help.
Reply
#2

Just freeze the driver using https://sampwiki.blast.hk/wiki/Function:...erControllable.
And his vehicle will be frozen when you do this.
or you can SetVehicleParamsEx it to turn it's engine off.
Reply
#3

Vehicleutil.pwn is present in
/samp037_svr_R1_win32/includes/vehicleutil.pwn
open it you will see stocks


SetVehicleEngineState(vid, setstate)

pawn Код:
#include "../include/vehicleutil.inc"

public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    SetVehicleEngineState(vehicleid, 1)// 1 to turn on // either no need tho
    return 1;
}
public OnPlayerExitVehicle(playerid, vehicleid)
{
    SetVehicleEngineState(vehicleid, 0)// 0 to turn off // either no need tho
    return 1;
}
and many more..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)