Raised This Month: $ Target: $400
 0% 

Help with displaying .txt in motd window


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
MOBOB
Member
Join Date: Dec 2004
Old 01-01-2006 , 00:40   Help with displaying .txt in motd window
Reply With Quote #1

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
__________________
MOBOB 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 16:11.


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