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 .
when someone has one of those weapons the server stops, stops working everything, resembling lag
code of Ilegal weapons irc .
Code:
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);
}
}
}
}
}