/fuelcars not working ?
#1

When you want to fill one car it works fine, but when fueling all it doesnt work
pawn Код:
if(strcmp(cmd, "/fill", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            if(IsAtGasStation(playerid))
            {
                GameTextForPlayer(playerid,"~w~~n~~n~~n~~n~~n~~n~~n~~n~~n~Re-Fueling Vehicle, please wait",2000,3);
                SetTimer("Fillup",5000,0);
                Refueling[playerid] = 1;
            }
            else
            {
                SendClientMessage(playerid,COLOR_GREY,"   You are not at a Gas Station !");
            }
        }
        return 1;
    }
pawn Код:
if(strcmp(cmd, "/fuelcars", true) == 0 && PlayerInfo[playerid][pAdmin] >= 2)
    {
        if(IsPlayerConnected(playerid))
        {
            for(new v = 0; v < MAX_PLAYERS; v++)
            {
                Refueling[v] = 1;
                format(string, sizeof(string), "AdmWarning: %s has refueled all vehicles",PlayerName(playerid));
                ABroadCast(COLOR_YELLOW,string,1);
                return 1;
            }
        }
        return 1;
    }
Reply


Messages In This Thread
/fuelcars not working ? - by jadhanna2 - 28.05.2013, 16:56
Re: /fuelcars not working ? - by AIped - 28.05.2013, 16:58
Re: /fuelcars not working ? - by dannyk0ed - 28.05.2013, 16:59
Re: /fuelcars not working ? - by Noliax8 - 28.05.2013, 17:00
Re : /fuelcars not working ? - by jadhanna2 - 28.05.2013, 17:02
Re : /fuelcars not working ? - by Stefano.R - 28.05.2013, 17:54
Re: /fuelcars not working ? - by xXShadowXx - 28.05.2013, 18:14

Forum Jump:


Users browsing this thread: 2 Guest(s)