03.02.2013, 18:11
(
Последний раз редактировалось Youtube12; 03.02.2013 в 18:57.
)
Hi guys I want to make my /admins command with Dialog (ShowPlayerDialog).
My code
Regards *******12
My code
Код:
if (strcmp(cmd, "/admins", true) == 0) // Admin list if they're online { new count = 0; SendClientMessage(playerid, GRUEN, "[Online Admins]"); for(new i = 0; i < MAX_PLAYERS; i++) { if (IsPlayerConnected(i)) { if(AccountInfo[i][AdminLevel] >= 1 && AccountInfo[i][AdminLevel] <= 5 && Hide[i] == 0) { new playername[MAX_PLAYER_NAME]; GetPlayerName(i, playername, sizeof(playername)); format(string, 128, "Level %d [%i]%s", AccountInfo[i][AdminLevel],i,playername); SendClientMessage(playerid, HELLGRUEN, string); count++; } } } if (count == 0) SendClientMessage(playerid,LILA,"Server: No Admins online yet."); return true; }