24.10.2013, 04:06
pawn Код:
CMD:hitlist(playerid, params[])
{
new count = 0,string[1024],fstring[1024];
// new ARank[128];
SendClientMessage(playerid, COLOR_YELLOW, "[__________ HIT LIST __________]");
for(new i = 0; i < MAX_PLAYERS; i++)
{
if (IsPlayerConnected(i))
{
if(pInfo[i][Placehit] > 0)
{
format(fstring, sizeof(fstring), "%s(%i) - {FFFF00}%s", pNameHit(i), i, Comma(pInfo[i][Placehit]));
strcat(string, fstring);
count++;
}
SendClientMessage(playerid, COLOR_WHITE, string);
}
}
return 1;
}