Fuel Problem
#1

pawn Код:
for(new i=0;i<MAX_PLAYERS;i++) {
        if (isrefuelling[i]) continue;
        new vid = GetPlayerVehicleID(i);
        if (GetPlayerVehicleSeat(i) == 0) {
            fuel[vid] = fuel[vid] - 2;
            if (fuel[vid]<1)
            {
                fuel[vid] = 0;
                //RemovePlayerFromVehicle(i);
                GameTextForPlayer(i,"~r~Out of ~w~fuel~r~!",5000,4);
            }
        }
        new string[128];format(string,sizeof string,"Fuel:    %i",fuel[vid] /4);
        TextDrawSetString(td_fuel[i],string);
I want the fuel decrease every 10 seconds at least, How to do that?
Reply


Messages In This Thread
Fuel Problem - by Teemo - 14.02.2014, 17:39
Re: Fuel Problem - by Teemo - 14.02.2014, 18:07
Re: Fuel Problem - by Aerotactics - 14.02.2014, 18:18
Re: Fuel Problem - by Teemo - 14.02.2014, 18:26
Re: Fuel Problem - by CuervO - 14.02.2014, 18:33
Re: Fuel Problem - by Teemo - 14.02.2014, 18:58
Re: Fuel Problem - by CuervO - 14.02.2014, 19:32
Re: Fuel Problem - by Teemo - 14.02.2014, 19:38

Forum Jump:


Users browsing this thread: 2 Guest(s)