11.06.2011, 21:53
Hey all. What's wrong with my report command?
It spams the chat with: Report Sended
It spams the chat with: Report Sended
pawn Code:
COMMAND:report(playerid,params[])
{
new report[100];
if(sscanf(params,"s",report)) return SendClientMessage(playerid,COLOR_GREY,"USAGE:/report [reason]");
for(new admins;PlayerInfo[admins][pAdminLevel] < MAX_PLAYERS; admins++)
{
format(String,sizeof(String),"Report From %s REPORT:{6EF83C}%s",Name[playerid],report);
SendClientMessage(admins,COLOR_ORANGE,String);
SendClientMessage(playerid,COLOR_ORANGE,"Report Sended!");
}
return 1;
}