22.08.2015, 20:09
I just whipped this command up for you. Its pretty simple. a_samp and zCMD come with a "SetPlayerSkin" variable.. so here.
Код:
CMD:setskin(playerid, params[]) { if(PlayerInfo[playerid][pAdmin] >= 1) { new targetid, skinid; if (!sscanf(params, "ii", targetid, skinid)) { if (targetid != INVALID_PLAYER_ID) { new message[40]; SetPlayerSkin(targetid, skinid); format(message, sizeof(message), "Your skin ID was set to '%d' by an Admin!", skinid); SendClientMessage(targetid, COLOR_ORANGE, message); } else SendClientMessage(playerid, COLOR_GREY, "That player is not connected!"); } else SendClientMessage(playerid, COLOR_WHITE, "SYNTAX: /setskin [playerid]"); } else SendClientMessage(playerid, COLOR_GREY, "You are not a level 1+ Admin!"); return 1; }