Raised This Month: $ Target: $400
 0% 

[help] motd and client_cmd


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Dr.G
Senior Member
Join Date: Nov 2008
Old 12-30-2008 , 12:13   [help] motd and client_cmd
Reply With Quote #1

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(idprint_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
__________________

Last edited by Dr.G; 03-11-2009 at 09:28.
Dr.G is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:17.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode