Admin cmd bugged?
#1

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;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)