02.05.2011, 12:42
im make /admins in dialog but it show my name only i don't know
pawn Код:
if (strcmp("/admins", cmdtext, true) == 0)
{
for(new i=0; i < MAX_PLAYERS; i++)
{
if (adminlevel[i] >= 1)
{
new admins[145];
new name[MAX_PLAYER_NAME];
GetPlayerName(i, name, sizeof(name));
format(admins, sizeof(admins), "Level %d || %s(ID:%d)",adminlevel[playerid],name,i);
ShowPlayerDialog(playerid, 900, DIALOG_STYLE_MSGBOX, "{E6AC00}Online Admins", admins, "Ok", "Thanks");
}
}
return 1;
}