25.09.2011, 18:37
This one need zcmd and sscanf:
pawn Код:
CMD:setskin(playerid, params[])
{
new level, id;
if(sscanf(params, "dd", id, level)) return SendClientMessage(playerid, WHITE, "{FF0000}USAGE:{FFFFFF} /setskin [playerid] [skin id]");
{
if(level > 299 || level < 1) return SendClientMessage(playerid, GREY, "Invalid skin ID!");
SetPlayerSkin(id, level);
}
return 1;
}