21.03.2010, 21:40
Hello again, sometimes I'm checking my /admins to see if some of my admins are online etc, but sometimes when a normal player joins he shows as a lvl 10 or 3 admin on the /admins...
I think it just shows, he dont got admin rights or anything, if he had it, he would of course abuse it, this happends sometimes with random players.
Anyone of you got any idea what can cause this?
Thanks
I think it just shows, he dont got admin rights or anything, if he had it, he would of course abuse it, this happends sometimes with random players.
Anyone of you got any idea what can cause this?
Код:
if (strcmp(cmd, "/admins", true) == 0) { if(IsPlayerConnected(playerid)) { SendClientMessage(playerid, COLOR_RED, "Admins Online:"); for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(PlayerInfo[i][pAdminLevel] >= 1 && PlayerInfo[i][pAdminLevel] < 11) { new admin = PlayerInfo[i][pAdminLevel]; GetPlayerName(i, sendername, sizeof(sendername)); format(string, sizeof(string), "Level %d: %s", admin, sendername); SendClientMessage(playerid, COLOR_GREEN, string); } } } } return 1; }