/drop command.
#7

pawn Код:
command(drop, playerid, params[])
{
    new
        item[20];
    if(isnull(params))
    {
        return SendClientMessage(playerid, -1, "USAGE: /drop [item]");
    }
    else if(!strcmp(item, "clothes", true)
    {
        new
            slot;
        if(sscanf(params, "s[20]d", item,  slot))
        {
            return SendClientMessage(playerid, -1, "USAGE: /drop clothes [slot]");
        }
        if(slot < 1 || slot > 3)
        {
            return SendClientMessage(playerid, -1, "Don't go below 1 or over 3.");
        }
        // code here
        return 1;
    }
    return 1;
}
Reply


Messages In This Thread
/drop command. - by iGetty - 24.05.2012, 22:20
Re: /drop command. - by vIBIENNYx - 24.05.2012, 22:26
Re: /drop command. - by vIBIENNYx - 24.05.2012, 22:30
Re: /drop command. - by iGetty - 24.05.2012, 22:36
Re: /drop command. - by iGetty - 24.05.2012, 22:50
Re: /drop command. - by IceCube! - 24.05.2012, 23:13
Re: /drop command. - by ReneG - 24.05.2012, 23:22

Forum Jump:


Users browsing this thread: 1 Guest(s)