I am trying to use this plugin:
http://forums.alliedmods.net/showthread.php?t=10090 and change it so that if a client says /rewards it displays a rewards.txt which is on my server. THe original code looks like this...
Code:
#include <amxmodx>
#include <amxmisc>
public admin_motd(id,level,cid) {
if (!cmd_access(id,level,cid,1))
return PLUGIN_CONTINUE
show_motd(id,"motd.txt","Message of the Day.")
return PLUGIN_CONTINUE
}
public plugin_init() {
register_plugin("say /motd","1.1","Pa1n")
register_clcmd("say /motd","admin_motd",0,"- Shows the MOTD.")
}
and my code looks like this:
Code:
#include <amxmodx>
#include <amxmisc>
public admin_rewards(id,level,cid) {
if (!cmd_access(id,level,cid,1))
return PLUGIN_CONTINUE
show_motd(id,"rewards.txt","Reward Info")
return PLUGIN_CONTINUE
}
public plugin_init() {
register_plugin("say /rewards","1.0","|sXe| Mr. Foster")
register_clcmd("say /rewards","ADMIN_ALL",0,"- Shows the Reward info.")
}
When /rewards is said no window appears... can someont tell me what i am doing wrong.
Thanks,
MOBOB
__________________