Server Crash
#1

hello to all, now in my and added to the irc an illegal anti-gun function, this is that if a player places an illegal weapon this will be reported in the irc, but now it happens to me that when someone places an illegal weapon crashes osea there is much lag, and the does not work

code of Ilegal weapons irc .

Код:
public IWC()
{
	foreach(Player,i)
	{
	    if(IsPlayerConnected(i))
	    {

		    {
		        if(GetPlayerWeapon(i) == 35 || GetPlayerWeapon(i) == 36 || GetPlayerWeapon(i) == 37 || GetPlayerWeapon(i) == 38 || GetPlayerWeapon(i) == 39 || GetPlayerWeapon(i) == 44 || GetPlayerWeapon(i) == 45)
		        {
					new string[120];
					format(string,sizeof(string),"04[IW ALERT!!!] %s(ID %d) has illegal weapons!",GetPlayerName(i),i);
					IRC_GroupSay(groupID,IRC_CHANNEL,string);
				}
			}
		}
	}
}
when someone has one of those weapons the server stops, stops working everything, resembling lag
Reply
#2

help please
Reply
#3

No info/detail = no help
Reply
#4

Quote:
Originally Posted by Yousha
Посмотреть сообщение
No info/detail = no help
so , what you need for help me
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)