CMD:setskin(playerid, params[]){SendClientMessage(playerid, COLOR_RED, \"1\"); if(PlayerInfo[playerid][pLogged] == 1){ SendClientMessage(playerid, COLOR_RED, \"1\"); if(PlayerInfo[playerid][pAdmin] >= 6){ SendClientMessage(playerid, COLOR_RED, \"1\"); new skin, giveplayer[MAX_PLAYER_NAME], string[128]; SendClientMessage(playerid, COLOR_RED, \"1\"); if(sscanf(params, \"ui\", giveplayerid, skin)) SendClientMessage(playerid, COLOR_RED, \"1\"); if(isnull(params)) return SendClientMessage(playerid,0xFFFFFFFF,\"Használat: /setskin (Játékos id/név) (Skin id)\"); SendClientMessage(playerid, COLOR_RED, \"1\"); if(skin > 299 || skin < 1) { SendClientMessage(playerid, COLOR_GREY, \"Hibás skin ID!\"); return 1; } SendClientMessage(playerid, COLOR_RED, \"1\"); if(PlayerInfo[giveplayerid][pLogged] != 0) { SendClientMessage(playerid, COLOR_RED, \"1\"); if(giveplayerid != INVALID_PLAYER_ID) { SendClientMessage(playerid, COLOR_RED, \"1\"); GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); PlayerInfo[giveplayerid][pAlapSkin] = skin; format(string, sizeof(string), \"Szerver: a skinedet átváltoztatta egy admin!\"); SendClientMessage(giveplayerid, COLOR_YELLOW, string); format(string, sizeof(string), \"Átálítottad %s skin id-jét erre: %d.\", giveplayer, skin); SendClientMessage(playerid, COLOR_WHITE, string); format(string, sizeof(string), \"AdmWarning: %s átállította %d skinét [iD:%d]\", sendername, giveplayer, skin); SendAdminMessage(COLOR_RED, string); SetPlayerSkin(giveplayerid, PlayerInfo[giveplayerid][pAlapSkin]); } else return SendClientMessage(playerid, COLOR_GREY, \"Hibás id\"); } else return SendClientMessage(playerid, COLOR_GREY, \"Ez a játékos nem jelentkezett be\");}else return SendClientMessage(playerid, COLOR_RED, \"Nem vagy admin\");}else return SendClientMessage(playerid, COLOR_GRAD2, \"Elõször jelentkezz be!\");return 1;}
CMD:setskin(playerid, params[]){ if(PlayerInfo[playerid][pAdmin] >= 6) { new pID, sID; if(sscanf(params, \"ii\", pID, sID)){ SendClientMessage(playerid, SZÍNKÓD, \"Használat: /setskin [Azonosító] [skin ID]\"); }else if(!IsPlayerConnected(pID) || IsPlayerNPC(pID)){ SendClientMessage(playerid, SZÍNKÓD, \"Érvénytelen azonosító!\");}else if(sID > 299 || sID < 1){ SendClientMessage(playerid, SZÍNKÓD, \"Érvénytelen kinézet azonosító!\");}else{ new string[128]; format(string, 128, \"%s megváltoztatta %s kinézetét.\", GetPlayerNameEx(playerid), GetPlayerNameEx(pID)); SendClientMessageToAll(Szín, string); SetPlayerSkin(pID, sID);}}else{SendClientMessage(playerid, COLOR_RED, \"Nem vagy admin\");} return 1;}