How to make givemoney command
#5

pawn Код:
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;
}
Reply


Messages In This Thread
How to make givemoney command - by lyrics - 14.08.2011, 11:19
Re: How to make givemoney command - by Grim_ - 14.08.2011, 11:20
Re: How to make givemoney command - by lyrics - 14.08.2011, 11:24
Re: How to make givemoney command - by Grim_ - 14.08.2011, 11:26
Re: How to make givemoney command - by Darnell - 14.08.2011, 11:32
Re: How to make givemoney command - by lyrics - 14.08.2011, 11:34
Re: How to make givemoney command - by Darnell - 14.08.2011, 11:37
AW: How to make givemoney command - by samtey - 14.08.2011, 11:41
Re: AW: How to make givemoney command - by Darnell - 14.08.2011, 11:47
AW: How to make givemoney command - by samtey - 14.08.2011, 11:48

Forum Jump:


Users browsing this thread: 2 Guest(s)