02.07.2014, 19:47
Код:
CMD:setskin(playerid,params[]) { if(pInfo[playerid][pLevel] >= 1) { new id,skinid; if(sscanf(params, "ui", id, skinid)) return SendClientMessage(playerid, yellow, "Usage: /Setskin <PlayerID> <skin ID>") ; if(IsPlayerConnected(id)) { if(skinid < 0 || skinid > 299) return SendClientMessage(playerid, red, "Invaild Skin ID!"); format(Jstring,sizeof(Jstring),"You have set %s's skin to %d", GetName(id), skinid); SendClientMessage(playerid,yellow,Jstring); format(Jstring, sizeof(Jstring), "Admin %s has given you a new skin (SkinID: %d)",GetName(playerid),skinid); SendClientMessage(id,lighterblue,Jstring); CommandToAdmins(playerid,"setskin"); return SetPlayerSkin(id, skinid); } else return ShowMessage(playerid, red, 2); } else return ShowMessage(playerid, red, 1); }