Help with Command to supply all cars
#1

My command does not supply vehicles of the server, someone help me ?

PHP код:
CMD:fillcars(playerid,params[])
{
        if( 
PlayerInfo[playerid][pAdmin] == || PlayerInfo[playerid][pMod] == 1  || PlayerInfo[playerid][pDono] == 1)
    {
        new 
quantity;
        if(
sscanf(params"i"quantity)) return SendClientMessage(playeridred"Use: /fillcars [quantity]");
        if(
quantity|| quantity100) return SendClientMessage(playeridred"| ERROR | The maximum amount of gas is 100!");
        for ( new 
MAX_VEHICLES ++)
        {
            new 
stringgas[256];
            
carfuel[c] += quantity;
            
format(stringgassizeof(stringgas), "AdmCmd: You supplied % d liter on all cars of San Andreas"quantity);
            
SendClientMessage(playeridbluestringgas);
            return 
1;
        }
    }
    else
    {
        
SendClientMessage(playerid,red,"| ERROR | You don't have permission!");
    }
    return 
1;

Reply


Messages In This Thread
Help with Command to supply all cars - by LucasDias - 09.06.2015, 14:02
Re: Help with Command to supply all cars - by Konstantinos - 09.06.2015, 14:04
Re: Help with Command to supply all cars - by LucasDias - 09.06.2015, 14:11
Re: Help with Command to supply all cars - by Richie© - 09.06.2015, 14:15
Re: Help with Command to supply all cars - by Konstantinos - 09.06.2015, 14:17
Re: Help with Command to supply all cars - by JaydenJason - 09.06.2015, 14:26
Re: Help with Command to supply all cars - by Threshold - 09.06.2015, 15:56
Re: Help with Command to supply all cars - by LucasDias - 09.06.2015, 17:00
Re: Help with Command to supply all cars - by Threshold - 09.06.2015, 17:44

Forum Jump:


Users browsing this thread: 1 Guest(s)