26.08.2015, 12:01
PHP код:
if(strcmp(cmd, "/sought", true) == 0)
{
if(IsAMilitares(playerid))
{
if(OnDuty[playerid] != 1 && GetPlayerOrg(playerid) != 2) return SendClientMessage(playerid,COLOR_GRAD1,"ERROR: You do not hit your card.");
new string[128],content[128];
for(new i=0; i < GetMaxPlayers(); i++)
{
if(IsPlayerConnected(i))
{
if(AccountData[i][pWantedLevel] > 0)
{
format(string, sizeof(string), "{FFFFFF}%s - Search Level: %d",GetPlayerNameRP(i),AccountData[i][pWantedLevel]);
strcat(content, string, sizeof(content));
ShowPlayerDialog(playerid, 0, DIALOG_STYLE_LIST, "{FFFF00}Wanted Government:", content, "Okey","");
}
}
}
return 1;
}
else SendClientMessage(playerid,COLOR_GRAD1,"ERRO: Restricted access only to military.");
return 1;
}