Help me with creating this type of command.
#4

if you usind dcmd and sscanf:

pawn Code:
dcmd_givemoney(playerid, params[])
{
    new id, money;
    if (sscanf(params, "ui", id, money)) return SendClientMessage(playerid, -1,"Usage: /givemoney id ammount");
    if (id == INVALID_PLAYER_ID) // Send Error Message..
    // More stuff
    GivePlayerMoney(id, money);
    // More stuff
    return 1;
}
Reply


Messages In This Thread
Help me with creating this type of command. - by Shockey HD - 19.07.2011, 19:25
Re: Help me with creating this type of command. - by Raimis_R - 19.07.2011, 19:32
Re: Help me with creating this type of command. - by Shockey HD - 19.07.2011, 19:33
Re: Help me with creating this type of command. - by Raimis_R - 19.07.2011, 19:39
Re: Help me with creating this type of command. - by linuxthefish - 19.07.2011, 19:48
Re: Help me with creating this type of command. - by Shockey HD - 19.07.2011, 19:55

Forum Jump:


Users browsing this thread: 1 Guest(s)