17.11.2014, 07:40
Did it not compile well?
EDIT:This is also a problem of mine,/admins shows only for my level and when i set the other player's level,it shows for himself and not for both.
Help me with this also.I do not want to create multiple threads for all my problems.
EDIT:This is also a problem of mine,/admins shows only for my level and when i set the other player's level,it shows for himself and not for both.
Код:
CMD:admins(playerid,params[])
{
new admin = 0;
new string[128];
new PlayerName[28];
GetPlayerName(playerid, PlayerName, 28);
admin++;
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(PlayerInfo[i][pAdmin] > 0)
{
format(string,sizeof(string),"The following admin(s) are currently online:\nName: %s Level: %d ID: %i\n",PlayerName,PlayerInfo[i][pAdmin],i);
ShowPlayerDialog(playerid,1,DIALOG_STYLE_MSGBOX,"Online Admins",string,"Okay","Close");
return 1;
}
}
}

