01.08.2012, 18:08
And this is the one that I tried to make:
If a player type /admins he will show a dialog with the online administrators but it didnt work
here's the code:
If a player type /admins he will show a dialog with the online administrators but it didnt work
here's the code:
PHP код:
if(strcmp(cmd, "/admins", true) == 0)
{
new str[128];
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(Stats[i][AdminLvl] > 0 && IsPlayerConnected(i))
{
new name[90];
GetPlayerName(i,name,sizeof(name));
format(str,sizeof(str),"%s(id:%d) is Online.",name,i);
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, "{FFFFFF}Online Admins", BigString15, "Close","");
}
}
return 1;
}