15.01.2016, 23:15
Try this:
and so on
PHP код:
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(pInfo[i][pAdminLevel] > 0)
{
new string[256], aName[MAX_PLAYER_NAME];
GetPlayerName(i, aName, sizeof(aName));
SendClientMessage(playerid, COLOR_ADMIN, "Admins Online:");
SendClientMessage(playerid, COLOR_ADMIN, "------------------------");
if(pInfo[i][pAdminLevel] == 1)
format(string, sizeof(string), "%s - Admin level %d", aName, pInfo[i][pAdminLevel]);
SendClientMessage(playerid, -1, string);
SendClientMessage(playerid, COLOR_ADMIN, "---------------------------------------------------------------");
SendClientMessage(playerid, -1, "If you have any problems, don't hesitate to use /report.");
SendClientMessage(playerid, -1, "Or you can use /n for questions about the server.");
SendClientMessage(playerid, COLOR_ADMIN, "---------------------------------------------------------------");
}
else if(pInfo[i][pAdminLevel] == 2)
{
}
}