14.08.2015, 08:36
I have made myself a setrankname command for factions but it doesn't work. Can someone look at it for me?
Thanks.
Код:
command(setrankname, playerid, params[]) { if(PlayerInfo[playerid][pAdmin] >= 4) { new target, rankname, string[128]; if(sscanf(params,"ui", target, rankname)) return SendClientMessage(playerid, GREY, "SYNTAX:{FFFFFF} /setrankname [ID] [rankname]"); { PlayerInfo[target][pRankName] = rankname; { format(string, sizeof(string), "WARN: You changed: %s's rankname to: %s", RPName(target), PlayerInfo[playerid][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); } } } return 1; }