and real problem is here:
PHP Code:
public client_authorized(id) {
if (is_user_bot(id))
return PLUGIN_CONTINUE
const LEN = 32
new authid[LEN + 1], name[32]
get_user_authid(id, authid, LEN)
get_user_name(id, name, 31)
g_regged[id] = checkreg(authid, name)
if (g_regged[id])
server_print("[%s] %s (%s) is registered.", PLUGINNAME, name, authid)
if (get_cvar_num(CVAR_KICKNONREGGED)) {
new regurl[128]
get_cvar_string(CVAR_REGURL, regurl, 127)
server_cmd("kick #%d your Steam ID %s is been blacklisted at %s .", get_user_userid(id), authid, regurl)
else {
server_print("[%s] %s (%s) is not blacklisted.", PLUGINNAME, name, authid)
}
}
return PLUGIN_CONTINUE
}
firstly invalid {}{{{}{{...
something like this will correct:
PHP Code:
public client_authorized(id)
{
if (is_user_bot(id))
return PLUGIN_CONTINUE
new authid[33], name[32]
get_user_authid(id, authid, 32)
get_user_name(id, name, 31)
g_regged[id] = checkreg(authid, name)
if (g_regged[id])
{
server_print("[%s] %s (%s) is registered.", PLUGINNAME, name, authid)
if (get_cvar_num(CVAR_KICKNONREGGED))
{
new regurl[128]
get_cvar_string(CVAR_REGURL, regurl, 127)
server_cmd("kick #%d your Steam ID %s is been blacklisted at %s .", get_user_userid(id), authid, regurl)
}
else
{
server_print("[%s] %s (%s) is not blacklisted.", PLUGINNAME, name, authid)
}
}
return PLUGIN_CONTINUE
}
__________________