02.06.2015, 16:00
Vehicleutil.pwn is present in
/samp037_svr_R1_win32/includes/vehicleutil.pwn
open it you will see stocks
SetVehicleEngineState(vid, setstate)
and many more..
/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;
}