Doesn't shows the reason
#1

Код:
CMD:clearflag(playerid, params[])
{
	if(PlayerInfo[playerid][pAdmin] >= 3)
	{
		new string[128], giveplayerid, reason;
		if(sscanf(params, "u", giveplayerid, reason)) return SendClientMessageEx(playerid, COLOR_WHITE, "USAGE: /clearflag [playerid] [reason]");

		if(IsPlayerConnected(giveplayerid))
		{
			if(RemoveFlag(giveplayerid))
			{
				format(PlayerInfo[giveplayerid][pFlag], 128, "");
				format(string, sizeof(string), "{AA3333}AdmWarning{FFFF00}: %s has cleared all flags on %s, reason: %s.",GetPlayerNameEx(playerid),GetPlayerNameEx(giveplayerid), reason);
				ABroadCast(COLOR_YELLOW,string,2);
			}
			else
			{
				format(string, sizeof(string), "   %s does not have any outstanding flags.", GetPlayerNameEx(giveplayerid));
				SendClientMessageEx(playerid, COLOR_GRAD1, string);
			}

		}
	}
	else
	{
		SendClientMessageEx(playerid, COLOR_GRAD1, "   You are not authorized to use that command !");
		return 1;
	}
	return 1;
}
when im doing /clearflag 0 test
its says:

Код:
AdmWarning: Admin has cleared all flags on Player, reason: .
it doesn't shows the reason that i wrote over /clearflag
Reply


Messages In This Thread
Doesn't shows the reason - by Nivniv2 - 23.03.2013, 02:42
Re: Doesn't shows the reason - by RoboN1X - 23.03.2013, 03:06

Forum Jump:


Users browsing this thread: 2 Guest(s)