[SOLVED] Admin Problem
#1

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?

Код:
	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;
	}
Thanks
Reply
#2

does the adminlevel variable gets resetted to 0 when a player disconnects?
Reply
#3

Quote:
Originally Posted by Babul
does the adminlevel variable gets resetted to 0 when a player disconnects?
Sorry for late answer....

I dont think so, what do you recommend me to do?
Reply
#4

Quote:
Originally Posted by mavtias
Quote:
Originally Posted by FreddeN
Quote:
Originally Posted by mavtias
Quote:
Originally Posted by FreddeN
Quote:
Originally Posted by mavtias
Quote:
Originally Posted by FreddeN
Quote:
Originally Posted by Babul
does the adminlevel variable gets resetted to 0 when a player disconnects?
Sorry for late answer....

I dont think so, what do you recommend me to do?
To DO It! Damnit...
Excuse me, I dont accept such attitude, I'm a beginner when it is about admin stuff, gtfo if you dont wanna help
Such attitude?
I was just saying "Damnit" because It's kind of obvious.
I just helped you, by the way.
I cant see how you helped me by saying Damnit...
You gotta be either blind or stupid.
DO IT; Read my quote above that.

Are you insulting me or should I take it as a dumb comment?

And, should I put this on OnPlayerDisconnet?

Код:
PlayerInfo[playerid][pAdmin] = 0;
Reply
#5

Quote:
Originally Posted by FreddeN
Quote:
Originally Posted by mavtias
Quote:
Originally Posted by FreddeN
Quote:
Originally Posted by mavtias
Quote:
Originally Posted by FreddeN
Quote:
Originally Posted by mavtias
Quote:
Originally Posted by FreddeN
Quote:
Originally Posted by Babul
does the adminlevel variable gets resetted to 0 when a player disconnects?
Sorry for late answer....

I dont think so, what do you recommend me to do?
To DO It! Damnit...
Excuse me, I dont accept such attitude, I'm a beginner when it is about admin stuff, gtfo if you dont wanna help
Such attitude?
I was just saying "Damnit" because It's kind of obvious.
I just helped you, by the way.
I cant see how you helped me by saying Damnit...
You gotta be either blind or stupid.
DO IT; Read my quote above that.

Are you insulting me or should I take it as a dumb comment?

And, should I put this on OnPlayerDisconnet?

Код:
PlayerInfo[playerid][pAdmin] = 0;
Saw the thread got cleaned up, and yeah that'd be more like It.
I knew you wasn't that stupid after all. Maybe tired and annoyed like me? :P
Reply


Forum Jump:


Users browsing this thread: 5 Guest(s)