Raised This Month: $ Target: $400
 0% 

Help with displaying .txt in motd window


Post New Thread Reply   
 
Thread Tools Display Modes
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
MOBOB
Member
Join Date: Dec 2004
Old 01-01-2006 , 00:58  
Reply With Quote #2

wow ok im sorry after i posted i was reading my post and i found the problem in the code. disregard this topic.
__________________
MOBOB is offline
Brad
AMX Mod X Team Member
Join Date: Jun 2004
Old 01-01-2006 , 10:42  
Reply With Quote #3

You do realize that you can delete your own posts as long as no one else has yet responded to it, correct? See that "x" right by the "edit" button? That's for delete.
Brad is offline
Reply


Thread Tools
Display Modes

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