[HELP]Random Cmd
#4

Quote:
Originally Posted by mayk
Посмотреть сообщение
the name of the cmd don't maters give me the code
oh wait, misunderstood. I tought you meant /otvorise and /givemoney.

pawn Код:
CMD:givemoney(playerid, params[])
{
    if (!IsPlayerAdmin(playerid)) return SendClientMessage(byplayerid, 0xFF0000FF, "Only admins can use this command!");
    {
        new
            playerid,
            amount;
        if (!sscanf(params, "ui", playerid, amount)) return SendClientMessage(byplayerid, 0xFFFFFFFF, "Usage: /givemoney <player ID/name> <amount>");
        {
            if (playerid = INVALID_PLAYER_ID) return  SendClientMessage(byplayerid, 0xFF0000FF, "Error: no such player");
            {
                new
                    message[40];
                   
                GivePlayerMoney(playerid, amount);
                format(message, sizeof(message), "You got $%d from admin!", amount);
                SendClientMessage(playerid, 0x00FF00FF, message);
            }
        }
    }
    return 1;
}
And don't be so bitchy.
Reply


Messages In This Thread
[HELP]Random Cmd - by mayk - 01.10.2011, 18:13
Re: [HELP]Random Cmd - by Kingunit - 01.10.2011, 18:28
Re: [HELP]Random Cmd - by mayk - 01.10.2011, 18:31
Re: [HELP]Random Cmd - by Kingunit - 01.10.2011, 18:37
Re: [HELP]Random Cmd - by mayk - 01.10.2011, 18:44
Re: [HELP]Random Cmd - by Slake - 01.10.2011, 18:47
Re: [HELP]Random Cmd - by mayk - 01.10.2011, 19:07
Re: [HELP]Random Cmd - by DRIFT_HUNTER - 01.10.2011, 19:08
Re: [HELP]Random Cmd - by mayk - 01.10.2011, 19:15
Re: [HELP]Random Cmd - by Kingunit - 01.10.2011, 19:17

Forum Jump:


Users browsing this thread: 3 Guest(s)