There can be intense logic of detecting a IP
But still posting this little thing.. maybe if this can help
PHP Code:
#include <amxmodx>
new Blocked[][] =
{
":27015", ":27016", "1.2.3.4" // xD
}
public plugin_init()
register_plugin("Anti Name IP", "1.0", "DiGiTaL")
public client_authorized(id)
{
new szName[32]
get_user_name(id, szName, charsmax(szName))
for(new i; i < sizeof Blocked;i++)
if(containi(szName, Blocked[i]) != -1)
server_cmd("kick #%d ^"IP Spam is not allowed Here !^"", get_user_userid(id))
}