03.10.2011, 20:38
Hello i have a problem with a script that show me admins of the server its work but have a player ID 2 is that in the admin list he isnt a admin what is wrong?
Код:
dcmd_admins(playerid,params[]) { new sendername[MAX_PLAYER_NAME]; #pragma unused params if(IsPlayerConnected(playerid)) { SendClientMessage(playerid, COLOR_RED, "Server Administrator"); for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(Admin[i][AdminLevel] > 1336) { GetPlayerName(i, sendername, sizeof(sendername)); format(string1, sizeof(string1), "Administrator: %s ", sendername); SendClientMessage(playerid, COLOR_RED, string1); } } } } return 1; }