fuel system - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: fuel system (
/showthread.php?tid=616270)
fuel system -
Rafaeloo - 02.09.2016
hello
i have gamemode of hzrp, and i dont know where can i change the time of fuel?
Anyone know? please tell me
Re: fuel system -
Rafaeloo - 02.09.2016
if anyone know help me +repp
Respuesta: fuel system -
HidroDF - 02.09.2016
I don't know about this GM, but search for a timer onGameModeInit or something like this...
Код:
SetTimerEx("FuelTimer",1000,1,"i",i); // That's just an example, search something like this (1000ms = 1s)
Re: fuel system -
Shinja - 02.09.2016
if you can't find as Hidrof said,
Show the gamemode
Re: fuel system -
Rafaeloo - 02.09.2016
//Fuel System
#define FUEL_PRICE 20
new RefuelingVehiclePrice[MAX_PLAYERS];
new Float:Fuel[MAX_VEHICLES] = {100.0, ...};
new RefuelingVehicle[MAX_PLAYERS];
new RefuelingVehicleTimer[MAX_PLAYERS];
new Bar:FuelBar[MAX_PLAYERS] = INVALID_BAR_ID;
just this? have not settimer
Re: fuel system -
Shinja - 02.09.2016
CTRL + F and type RefuelingVehicleTimer, you will find a line like
PHP код:
RefuelingVehicleTimer[i] = SetTimer//...blabla
and there will be a number, this number is with ms, 1000 ms = 1sec. Change it to what you want