24.03.2018, 20:15
So this command was working alright all along till today.When i switched to 0.3.DL i saw couple of issues coming up as i switched.I do /setskin playerid skinid then i get a message that skin was changed but it won't change my skin or either anyone elses.Skin i had remains.
Command /setskin:
Command /setskin:
Код:
CMD:setskin(playerid, params[]) { new giveplayerid, moneys1, string[256], giveplayer[25]; if (adlvl[playerid] < 4) return 0; if (sscanf(params, "ud", giveplayerid, moneys1)) return SendClientMessage2(playerid, COLOR_WHITE, "Usage: /setskin [playerid] [skinid]"); if (!IsPlayerConnected2(giveplayerid)) return SendClientMessage2(playerid, COLOR_RED, "Error: Inactive player id!"); if (moneys1 < 0 || moneys1 > 20003 || moneys1 == 74) return SendClientMessage2(playerid, COLOR_RED, "Error: Invalid skin id."); SetPlayerSkinEx(giveplayerid, moneys1); GetPlayerName(giveplayerid, giveplayer, MAX_PLAYER_NAME); if (giveplayerid != playerid) { format(string, 128, "An admin has set your skin to %d.", moneys1); SendClientMessage2(giveplayerid, COLOR_YELLOW, string); format(string, 128, "You have set %s's skin to %d.", giveplayer, moneys1); SendClientMessage2(playerid, COLOR_YELLOW, string); } else { format(string, 128, "You have set your skin to %d.", moneys1); SendClientMessage2(playerid, COLOR_YELLOW, string); } return 1; }