Well something went wrong here, but i cant see what/how, and since its basic coding its even more odd to me, but iam still new with this tho.
The first problem is that the motd is showing, 2nd the /fixmyrates doesnt do anything either
PHP Code:
//NEW RATES
#define RATE1 "cl_cmdrate 80"
#define RATE2 "cl_updaterate 80"
#define RATE3 "net_graph 3"
#define RATE4 "net_graphwidth 300"
#define RATE5 "cl_rate 9999"
#define RATE6 "rate 20000"
public plugin_init()
{
register_clcmd("say","sayEvent1")
register_clcmd("say_team","sayEvent1")
register_clcmd("say","sayEvent2")
}
public sayEvent1(id)
{
new said[32]
read_args(said,31)
remove_quotes(said)
if((equali(said, "/rates")) || (equali(said, "!rates")))
{
show_motd(id, "rate_help.txt","[DoD Rate fixer] Help screen")
return PLUGIN_CONTINUE
}
return PLUGIN_CONTINUE
}
public sayEvent2(id)
{
new said[32]
read_args(said,31)
remove_quotes(said)
if((equali(said, "/fixmyrates")) || (equali(said, "!fixmyrates")))
{
client_cmd(id,RATE1)
client_cmd(id,RATE2)
client_cmd(id,RATE3)
client_cmd(id,RATE4)
client_cmd(id,RATE5)
client_cmd(id,RATE6)
client_print(id, print_chat, "[DoD Rate fixer] Your rates is now set!")
return PLUGIN_CONTINUE
}
return PLUGIN_CONTINUE
}
The sma file attached it the full code....
Thanks in advance
__________________