17.08.2012, 10:06
Hey guys, I've got a problem with this command, when I send the report I only see: Your report message has been sent even if I'm admin I can't see the Report Message.
pawn Код:
CMD:report(playerid, params[])
{
new sendername[MAX_PLAYER_NAME], string[128];
if(isnull(params)) return SendClientMessage(playerid, COLOR_LIGHTBLUE,"[SYNTAX]: /report [Message Here]");
GetPlayerName(playerid, sendername, sizeof(sendername));
strreplace(sendername, '_', ' ');
SendClientMessage(playerid, COLOR_GOLD, "Your report message has been sent to all the online Administrators.");
if(IsPlayerAdmin(playerid) || PlayerInfo[playerid][pAdminLevel] >= 1)
{
format(string, sizeof(string), "Report Message from: %s: %s", sendername, params);
SendClientMessageToAll(COLOR_GOLD, string);
}
return 1;
}