11.07.2012, 17:31
Hello !
I use ZCMD plugin for my commands.
I have for example this command :
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
I use ZCMD plugin for my commands.
I have for example this command :
PHP код:
CMD:skin(playerid, params[]) {
new skin;
if(sscanf(params, "i", skin) || skin < 0 || skin > 299) exception(playerid, ERROR_USE, "/skin <skinid [0-299]>");
else { SetPlayerSkin(playerid, skin); log(playerid, TYPE_COMMANDE_ADMIN, compressCommand("skin", params)); }
return 1;
}
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