/setrankname command.
#1

I have made myself a setrankname command for factions but it doesn't work. Can someone look at it for me?

Код:
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;
}
Thanks.
Reply


Messages In This Thread
/setrankname command. - by OMonger - 14.08.2015, 08:36
Re: /setrankname command. - by DTV - 14.08.2015, 09:07
Re: /setrankname command. - by OMonger - 14.08.2015, 09:17
Re: /setrankname command. - by LetsOWN[PL] - 14.08.2015, 10:03
Re: /setrankname command. - by OMonger - 14.08.2015, 10:07
Re: /setrankname command. - by OMonger - 14.08.2015, 10:42

Forum Jump:


Users browsing this thread: 1 Guest(s)