Two similar commands with ZCMD
#1

Hello !

I use ZCMD plugin for my commands.

I have for example this command :

PHP код:
CMD:skin(playeridparams[]) {
    new 
skin;
    if(
sscanf(params"i"skin) || skin || skin 299exception(playeridERROR_USE"/skin <skinid [0-299]>");
    else { 
SetPlayerSkin(playeridskin); log(playeridTYPE_COMMANDE_ADMINcompressCommand("skin"params)); }
    return 
1;

To shorten, I would like the /s <skinid> commanddo the same thing as /skin <skinid>.

Have I any other solution than put the same code in the two commands or do a function that I call in the two commands ?

Thanks in advance and sorry for my probably bad english
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)