This is a part of hlds irc.sma I want that if player ip is 127.0.0.1 then it dosent say to irc that this user has joined the server. I want this because I use ambot detector in my server and the aimbot detect bot spamm my irc channel whit join and left msgs
(17:28:00) (bot) [left][xyz41][127.0.0.1]
how can I make if the client ip is 127.0.0.1 then plugin will go
return PLUGIN_HANDLED?
PHP Code:
public client_putinserver(id)
{
if (irc_socket > 0 && get_cvar_num("irc_showjoins") == 1 && get_cvar_num("mp_timelimit")*60-get_timeleft() > 60)
{
new tmsg[1024]
get_cvar_string("irc_msg_srvjoin",tmsg,1024)
if (strlen(tmsg) == 0)
return 0
parsemessage(id,tmsg,temp,"")
format(temp,1024,"PRIVMSG %s :%s^r^n",chan,temp)
additem(temp)
}
return 0
}
PHP Code:
public client_disconnect(id)
{
if (irc_socket > 0 && get_cvar_num("irc_showjoins") == 1)
{
new tmsg[1024]
get_cvar_string("irc_msg_srvpart",tmsg,1024)
if (strlen(tmsg) == 0)
return 0
parsemessage(id,tmsg,temp,"")
format(temp,1024,"PRIVMSG %s :%s^r^n",chan,temp)
additem(temp)
}
return 0
}