Help Scripting Give Money
#1

what should be changed script from Give Money Player to Give Money All Player

This is the code Give Money to Player
Код:
CMD:givemoney(playerid, params[])
{
    new id, money, string[128], string2[128];
    if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xFF0000AA, "ERROR:You're not an admin.");
    {
        if(sscanf(params,"ii",id,money)) return SendClientMessage(playerid,COLOR_WHITE,"USAGE: /givemoney [ID] [amount]");
        else
            GivePlayerMoney(id,money);
        format(string, sizeof(string),"You have give player %s %d$!", GetName(id), money);
        SendClientMessage(playerid, COLOR_GREY, string);
        format(string2 ,sizeof(string2),"Administrator %s has given you %d$!", GetName(id), money);
        SendClientMessage(id, COLOR_GREY, string2);
    }
    return 1;
}
What should be changed in order to Give Money to All Player?
Reply


Messages In This Thread
Help Scripting Give Money - by egysaputra - 16.07.2013, 06:05
Re: Help Scripting Give Money - by DBan - 16.07.2013, 06:21
Re: Help Scripting Give Money - by Jstylezzz - 16.07.2013, 06:21
Re: Help Scripting Give Money - by egysaputra - 16.07.2013, 06:30
Re: Help Scripting Give Money - by DeMoX - 16.07.2013, 06:36
Re: Help Scripting Give Money - by egysaputra - 16.07.2013, 06:54

Forum Jump:


Users browsing this thread: 1 Guest(s)