23.10.2015, 19:19
Код:
command(rankname, playerid, params[]) { if(PlayerInfo[playerid][pRank] == 7) { new target, rankname[128]; if(sscanf(params,"us[64]", target, rankname)) return SendClientMessage(playerid, GREY, "SYNTAX:{FFFFFF} /setrankname [ID] [rankname]"); { new string[128]; format(PlayerInfo[playerid][pRankName], 255, "%s", rankname); format(string, sizeof(string), "WARN: You changed: %s's rankname to: %s", RPName(target), PlayerInfo[target][pRankName]); SendClientMessage(playerid, ADMINBLUE, string); format(string, sizeof(string), "WARN: %s has changed your rankname to: %s", RPName(playerid), PlayerInfo[playerid][pRankName]); SendClientMessage(target, ADMINBLUE, string); } } else { RemoveTextMessage(playerid); TextDrawShowForPlayer(playerid, Text:CantCommand); SetTimerEx("CantCommand", 3500, false, "d", playerid); } return 1; }