SA-MP Forums Archive
Admin cmd bugged? - 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: Admin cmd bugged? (/showthread.php?tid=190942)



Admin cmd bugged? - Face9000 - 17.11.2010

hi,i've a little problem,when i write !admins in my echo channel,sometimes will appear a random player with admin level. (WTF?)

Why this?

This is the cmd:

Код:
IRCCMD:admins(botid, channel[], user[], host[], params[])
{
	new str[100],name[24];
    for(new i=0;i<MAX_PLAYERS;i++)
	{
		if(IsPlayerConnected(i) && adminlevel[i] > 1)
		{
		    GetPlayerName(i,name,sizeof name);
		    format(str,sizeof str,"0,3Admin %s (ID:%d) (Level %d)",name,i,adminlevel[i]);
		    IRC_Say(IRC_EchoConnection[0],channel,str);
		}
	}
	return 1;
}