if (strcmp(\"/setskin\", cmdtext, true, 10) == 0){new string[128], PID, SkinID;if(sscanf(params, \"ui\", PID, SkinID)) return SendClientMessage(playerid, 0xFF0000AA, \"Használat: /setskin <ID/Játékosnév> <Skin ID>\");if(SkinID < 0 || SkinID > 299) return SendClientMessage(playerid, 0xFF0000AA, \"Rossz Skin ID!\");SetPlayerSkin(PID, SkinID);format(string, sizeof(string), \"Átállítottad %s(%i)-nek(nak) (ID: %d)-ra(re) a skinjét\", SkinID, PID, playerid); SendClientMessage(playerid, 0x33FF33AA, string);return 1;}
if(strcmp(cmd, \"/setskin\", true) == 0) { if(IsPlayerConnected(playerid)) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_RED, \"HASZNÁLAT: /setskin [Játékosnév/ID] [skin id]\"); return 1; } new para1; new level; para1 = ReturnUser(tmp); tmp = strtok(cmdtext, idx); level = strval(tmp); if(level > 299 || level < 1) { SendClientMessage(playerid, COLOR_GREY, \"Skin ID nem megfelelõ!\"); return 1; } if(IsPlayerConnected(para1)) { if(para1 != INVALID_PLAYER_ID) { GetPlayerName(para1, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); PlayerInfo[para1][pChar] = level; format(string, sizeof(string), \"Átállítottad %s skinét erre: %d.\", giveplayer,level); SendClientMessage(playerid, COLOR_WHITE, string); SetPlayerSkin(para1, PlayerInfo[para1][pChar]); } } else { SendClientMessage(playerid, COLOR_GRAD1, \" A játékos nem elérhetõ!\"); } } return 1; }
CMD:setskin(playerid,params){ if(IsPlayerAdmin(playerid)) { new toplayerid,skinid; if(sscanf(params,\"ui\",toplayerid,skinid)) { SetPlayerSkin(toplayerid,skinid); } else SendClientMessage(playerid,0xff0000ff,\"Használat: /setskin [iD/NÉV] [sKINID]\"); } return 1;}
de nekem nem zcmd-sre van szükségem[/quote]
dcmd_setskin(playerid, params[]){new string[128], PID, SkinID;if(PInfo[playerid][Level] < 2) return SendClientMessage(playerid,red,error);if(sscanf(params, \"ui\", PID, SkinID)) return SendClientMessage(playerid, 0xFF0000AA, \"Használat: /setskin <ID/Játékosnév> <Skin ID>\");if(SkinID < 0 || SkinID > 299) return SendClientMessage(playerid, 0xFF0000AA, \"Rossz Skin ID!\");SetPlayerSkin(PID, SkinID);format(string, sizeof(string), \"Átállítottad %s(%i)-nek(nak) (ID: %d)-ra(re) a skinjét\", SkinID, PID, playerid); SendClientMessage(playerid, 0x33FF33AA, string); return 1;}
dcmd(setskin,4,cmdtext);