Here?
I'm just newbie so I will be hapy if you help me.
PHP Code:
public bancheck(id)
{
new said[192]
read_args ( said, 191 )
new i = 0
while ( i < g_banNum )
{
if ( containi ( said, g_banWords[i++] ) != -1 )
{
new user_name[32]
get_user_name ( id, user_name, 31 )
server_cmd("amx_ban %s 0 ^"[Auto BAN] You have hack. So you got owned! Why you banned: %s^"", user_name, said)
server_cmd("amx_tsay green ^"[Auto BAN] %s banned. He said '%s' which is not permitted or it's a hack^"", user_name, said)
server_cmd("amx_chat ^"[Auto BAN] %s banned. He said '%s' which is not permitted or it's a hack^"", user_name, said)
log_amx("[AUTO BAN] Banned '%s' permanently, he said the denied word(s): %s", user_name, said)
return PLUGIN_HANDLED
}
}
return PLUGIN_CONTINUE
}