01.03.2014, 14:25
Admin Level 2 = Trusted Player and if you type /tps you see all Online Trusted Player..It works but he only shows 1 Trusted Player if 2 Trusted Players are online only 1 is shown
My Command
My Command
Код:
dcmd_tps(playerid, params[]) { #pragma unused params new count = 0, string[256]; for(new i = 0; i < MAX_PLAYERS; i ++) { if(IsPlayerConnected(i)) { if(AccInfo[i][Level] == 2) { new nameee[128]; GetPlayerName(i, nameee, 16); format(string, sizeof(string),"%s (ID:%d)\n",PlayerName2(i), i); ShowPlayerDialog(playerid, 139, DIALOG_STYLE_MSGBOX, "Trusted Players", string, "Ok", ""); count++; } } } if(count == 0) { ShowPlayerDialog(playerid, 139, DIALOG_STYLE_MSGBOX, "Trusted Players Online List", "No Trusted Player Online.", "Ok", ""); } return 1; }