PHP Code:
#include <amxmodx>
new Trie:Cvars
#define AMOUNT 152
new const g_komandos[AMOUNT][] =
{
"kzh_bhop",
//and 151 so that i don't want to show.... w/o value
}
public plugin_cfg() {
Cvars = TrieCreate()
for (new i = 0; i < AMOUNT; i++)
TrieSetCell(Cvars, g_komandos[i], i+1)
}
public client_connect(id) {
if (is_user_connected(id) && !is_user_bot(id) && !is_user_hltv(id)) {
for (new i = 0; i < AMOUNT; i++)
query_client_cvar(id, g_komandos[i],"Cvar_Result")
}
}
public client_disconnect(id) {
remove_task(id)
}
public Cvar_Result(id, const cvar[], const value[]) {
static value_check[6]
TrieGetString(Cvars, cvar, value_check, charsmax(value_check))
if(!equal(value, value_check))
veiksmas(id)
}
public veiksmas(id) {
server_cmd("kick #%d ^"blabla^"", get_user_userid(id))
//server_cmd("amx_ban 40320 #%d ^"blabla^"", get_user_userid(id))
}
first of all i getting overflow, couse theres much g_komandos = cvars, second i want specify reason to every cvar,thanks
the error in client console,server logs: none, tryed to debug plugin, no output:
Quote:
|
myserverip:serverport:Outgoing message overflow
|