23.08.2015, 18:22
Can you add the save bit too this...
Код:
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[256]; SetPlayerSkin(targetid, skinid); SendClientMessage(playerid, COLOR_WHITE, "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"); format(message, sizeof(message), "Your skin ID was set to '%d' by an Admin!", skinid); SendClientMessage(targetid, COLOR_ORANGE, message); SendClientMessage(playerid, COLOR_WHITE, "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"); } 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; }