Two similar commands with ZCMD
#5

Thank you!

You're just wrong, the correct code is this:

PHP код:
CMD:s(playeridparams[]) return cmd_skin(playeridparams); // Inattention ;D
CMD:skin(playeridparams[])
{
    new 
skin strval(params);
    if(
isnull(params) || skin 299 || skin 0) {
        return 
exception(playeridERROR_USE"/skin <skinid [0-299]>");
    }
    
SetPlayerSkin(playeridskin);
    
log(playeridTYPE_COMMANDE_ADMINcompressCommand("skin"params));
    return 
1;

it works, thank you
Reply


Messages In This Thread
Two similar commands with ZCMD - by Urefeu - 11.07.2012, 17:31
Re: Two similar commands with ZCMD - by RedJohn - 11.07.2012, 17:54
Re: Two similar commands with ZCMD - by ReneG - 11.07.2012, 17:59
Re: Two similar commands with ZCMD - by RedJohn - 11.07.2012, 18:01
Re : Two similar commands with ZCMD - by Urefeu - 12.07.2012, 09:16

Forum Jump:


Users browsing this thread: 1 Guest(s)