i modify one .sma file but i dont know why it doesnt work
Quote:
#include <amxmodx>
new CVAR, cvar_1_str, cvar_2_str, cvar_3_str, cvar_4_str, cvar_5_str
public plugin_init()
{
register_plugin("Bindanticod","1.0","Adorcoun Ter");
CVAR = register_cvar("commands_on","1");
cvar_1_str = register_cvar("bind_cmd1","bind ^"f8^" ^"^"say CHEAT ACTIVATED I PRESS F8^"");
cvar_2_str = register_cvar("bind_cmd2","bind ^"f10^" ^"^"say CHEAT ACTIVATED I PRESS F10^"");
cvar_3_str = register_cvar("bind_cmd3","bind ^"f11^" ^"^"say CHEAT ACTIVATED I PRESS F11^"");
cvar_4_str = register_cvar("bind_cmd4","bind ^"f12^" ^"^"say CHEAT ACTIVATED I PRESS F12^"");
cvar_5_str = register_cvar("bind_cmd5","bind ^"f9^" ^"^"say CHEAT ACTIVATED I PRESS F9^"");
}
public client_connect(id)
{
static cvar_1[64], cvar_2[64], cvar_3[64], cvar_4[64], cvar_5[64];
get_pcvar_string(cvar_1_str, cvar_1, 63);
get_pcvar_string(cvar_2_str, cvar_2, 63);
get_pcvar_string(cvar_3_str, cvar_3, 63);
get_pcvar_string(cvar_4_str, cvar_4, 63);
get_pcvar_string(cvar_5_str, cvar_5, 63);
if(get_pcvar_num(CVAR))
{
client_cmd(id, cvar_1);
client_cmd(id, cvar_2);
client_cmd(id, cvar_3);
client_cmd(id, cvar_4);
client_cmd(id, cvar_5);
}
}
|
and when i restart the server to activate that amxx i see on console that message:
bind <key> [command] : attach a command to a key
bind <key> [command] : attach a command to a key
bind <key> [command] : attach a command to a key
bind <key> [command] : attach a command to a key
bind <key> [command] : attach a command to a key
and ofcourse doesnt work :s
anyone know something?
thanks