26.08.2015, 12:37
Try this:
pawn Код:
if(!strcmp(cmd, "/sought", true))
{
if(!IsAMilitares(playerid)) return SendClientMessage(playerid, COLOR_GRAD1, "ERROR: Restricted access only to military.");
if(OnDuty[playerid] != 1 && GetPlayerOrg(playerid) != 2) return SendClientMessage(playerid, COLOR_GRAD1, "ERROR: You do not hit your card.");
new fstr[1000], tmpstr[50];
strcat(fstr, "{FFFF00}Wanted Government:{FFFFFF}\n");
for(new i = 0, j = GetPlayerPoolSize(); i <= j; i++)
{
if(!IsPlayerConnected(i)) continue;
if(!AccountData[i][pWantedLevel]) continue;
format(tmpstr, sizeof(tmpstr), "\n%s - Search Level: %d", GetPlayerNameRP(i), AccountData[i][pWantedLevel]);
if(strcat(fstr, tmpstr) >= sizeof(fstr)) break;
}
return 1;
}