SA-MP Forums Archive
[SOLVED] Admin Problem - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [SOLVED] Admin Problem (/showthread.php?tid=135810)



[SOLVED] Admin Problem - FreddeN - 21.03.2010

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


Re: [HELP] Admin Problem - Babul - 21.03.2010

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


Re: [HELP] Admin Problem - FreddeN - 23.03.2010

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?


Re: [HELP] Admin Problem - FreddeN - 23.03.2010

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;



Re: [HELP] Admin Problem - Mike Garber - 23.03.2010

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