05.12.2011, 20:35
How to make a
/kicks command,
Send a message like /reports
%s (%d) Kicked %s for %s.
%s (%d) Kicked %s for %s.
%s (%d) Kicked %s for %s.
/kicks command,
Send a message like /reports
%s (%d) Kicked %s for %s.
%s (%d) Kicked %s for %s.
%s (%d) Kicked %s for %s.
pawn Код:
dcmd_reports(playerid,params[]) {
#pragma unused params
if(PlayerInfo[playerid][Level] >= 1) {
new ReportCount;
for(new i = 1; i < MAX_REPORTS; i++)
{
if(strcmp( Reports[i], "<none>", true) != 0) { ReportCount++; SendClientMessage(playerid,COLOR_WHITE,Reports[i]); }
}
if(ReportCount == 0) SendClientMessage(playerid,COLOR_WHITE,"There have been no reports");
} else SendClientMessage(playerid,red,"ERROR: Necesitas ser nivel 1 para usar este comando!");
return 1;
}