fuel system
#1

hello
i have gamemode of hzrp, and i dont know where can i change the time of fuel?
Anyone know? please tell me
Reply
#2

if anyone know help me +repp
Reply
#3

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)
Reply
#4

if you can't find as Hidrof said,
Show the gamemode
Reply
#5

//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
Reply
#6

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)