AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Help with displaying .txt in motd window (https://forums.alliedmods.net/showthread.php?t=22651)

MOBOB 01-01-2006 00:40

Help with displaying .txt in motd window
 
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 01-01-2006 00:58

wow ok im sorry after i posted i was reading my post and i found the problem in the code. disregard this topic.

Brad 01-01-2006 10:42

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.


All times are GMT -4. The time now is 16:11.

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