10.08.2015, 14:12
PHP код:
new index;
for(new i;i<MAX_PLAYERS;i++)
{
if(PlayerInfo[i][pAdmin] == 0)continue;
index ++;
if(index == 1)SendClientMessage(playerid,COLOR_GRAD2,"[ADMINS ONLINE]");
format(string,sizeof string,"%s%i. %s (%d)\n",string,index,GetName(i),PlayerInfo[i][pAdmin]);
SendClientMessage(playerid,COLOR_GRAD2,string);
}
if(!index)SendClientMessage(playerid,COLOR_LIGHTRED,"Nu este nici un administrator online acum.");