11.02.2012, 10:38
Hello, After a few players have joined i am not sure if its because of that but the fuelbar drops in 30 seconds the timer isnt set for that and i have the same problem with the hunger system (i use the same system)
So if anyone could help me i would really appreciate that
This is my code thingie for the timer only
So if anyone could help me i would really appreciate that
This is my code thingie for the timer only
pawn Код:
public timer_fuel_lower(playerid)
{
new vid = GetPlayerVehicleID(playerid);
if (GetPlayerVehicleSeat(playerid) == 0){
GetVehicleParamsEx(playerid,engine,lights,alarm,doors,bonnet,boot,objective);
fuel[vid] = fuel[vid] -1;
if (fuel[vid]<1)
{
fuel[vid] = 0;
SetVehicleParamsEx(vid,0,lights,alarm,doors,bonnet,boot,objective);
VehEngine[vid] =0;
SCM(playerid, red,"[System] You are out of fuel");
}
}
SetProgressBarValue(bar_fuel[playerid], fuel[vid]);
UpdateProgressBar(bar_fuel[playerid], playerid);
}