07.08.2010, 03:09
My reports command looks like this:
It only shows the most recent report though, how do I make it so that each player gets their own Report string?
pawn Код:
new Report[128];
CMD:reports(playerid, params[])
{
if(GetPVarInt(playerid, "adminlevel") < 1) return SendClientMessage(playerid, RED, "You are not an administrator.");
{
SendClientMessage(playerid, YELLOW, "|__________Open Reports__________|");
foreach(Player, i)
{
if(IsPlayerConnected(i))
{
if(GetPVarInt(i, "reported") == 1)
{
new string[128];
format(string, sizeof(string), "REPORT: %s [%i]: %s", ReturnPlayerName(i), i, Report);
SendClientMessage(playerid, ORANGE, string);
}
}
}
}
return 1;
}