24.10.2013, 06:52
(
Последний раз редактировалось Threshold; 24.10.2013 в 15:45.
)
pawn Код:
CMD:hitlist(playerid, params[])
{
new count = 0,fstring[80];
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]));
count++;
SendClientMessage(playerid, COLOR_WHITE, fstring);
}
}
}
if(count == 0) return SendClientMessage(playerid, 0xFF0000FF, "There are currently no players with a hit contract.");
return 1;
}