Admin Command: Give Money To All Players
#2

I'll assume your using zcmd and sscanf

pawn Code:
CMD:giveall(playerid, params[])
{
    new value;
    if(!IsPlayerAdmin(playerid)) return 1;
    if(sscanf(params, "d", value) != 0) SendClientMessage(playerid, 0xFFFFFFFF, "USAGE: /giveall [Amount]"); return 1;
    for(new i=0; i<MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
            GivePlayerMoney(i, value);
        }
    }
    return 1;
}
Reply


Messages In This Thread
Admin Command: Give Money To All Players - by stuoyto - 13.12.2011, 22:56
Re: Admin Command: Give Money To All Players - by Rob_Maate - 13.12.2011, 23:01
Re: Admin Command: Give Money To All Players - by stuoyto - 13.12.2011, 23:06
Re: Admin Command: Give Money To All Players - by Rob_Maate - 13.12.2011, 23:09
Re: Admin Command: Give Money To All Players - by stuoyto - 13.12.2011, 23:11
Re: Admin Command: Give Money To All Players - by oLfacTiv - 02.03.2013, 15:44

Forum Jump:


Users browsing this thread: 1 Guest(s)