Raised This Month: $51 Target: $400
 12% 

Need Help


Post New Thread Reply   
 
Thread Tools Display Modes
vvg125
AMX Mod X Beta Tester
Join Date: Dec 2006
Location: Queens (Douglaston), New
Old 05-19-2007 , 02:51   Re: Need Help
Reply With Quote #11

Actually... since it doesn't take to long, I edited the say /motd plugin. All you have to do is create a rules.txt and maps.txt file in the mod directory and you can say "/rules" and "/maps".
Attached Files
File Type: sma Get Plugin or Get Source (say_motd.sma - 384 views - 578 Bytes)
__________________
vvg125 is offline
Send a message via AIM to vvg125 Send a message via MSN to vvg125 Send a message via Yahoo to vvg125
KoZxGamex
Junior Member
Join Date: May 2007
Old 05-19-2007 , 03:03   Re: Need Help
Reply With Quote #12

In the near future if I edit the sma, how do I convert it to amxx.
__________________

Last edited by KoZxGamex; 05-19-2007 at 03:10.
KoZxGamex is offline
vvg125
AMX Mod X Beta Tester
Join Date: Dec 2006
Location: Queens (Douglaston), New
Old 05-19-2007 , 03:08   Re: Need Help
Reply With Quote #13

By compiling it using either the compiler found in the base package or the one on the website.
__________________
vvg125 is offline
Send a message via AIM to vvg125 Send a message via MSN to vvg125 Send a message via Yahoo to vvg125
KoZxGamex
Junior Member
Join Date: May 2007
Old 05-19-2007 , 03:10   Re: Need Help
Reply With Quote #14

Where would I put the .txt files?
__________________
KoZxGamex is offline
KoZxGamex
Junior Member
Join Date: May 2007
Old 05-19-2007 , 03:17   Re: Need Help
Reply With Quote #15

Wait I got it to work thank you for all your help!!! +REPx10!!!!
__________________
KoZxGamex is offline
vvg125
AMX Mod X Beta Tester
Join Date: Dec 2006
Location: Queens (Douglaston), New
Old 05-19-2007 , 03:19   Re: Need Help
Reply With Quote #16

No problem.
__________________
vvg125 is offline
Send a message via AIM to vvg125 Send a message via MSN to vvg125 Send a message via Yahoo to vvg125
KoZxGamex
Junior Member
Join Date: May 2007
Old 05-19-2007 , 03:28   Re: Need Help
Reply With Quote #17

Oh if I wanted to edit the plugin to show the motd of my server would it go like this.

#include <amxmodx>
#include <amxmisc>


public plugin_init() {

register_plugin("say /motd","1.1","Pa1n")
register_clcmd("say /rules","say_rules",0,"- Shows rules.")
register_clcmd("say /maps","say_maps",0,"- Shows maps.")
register_clcmd("say /motd","say_motd",0,"- Shows motd.")
}

public say_rules(id,level,cid) {

if (!cmd_access(id,level,cid,1))
return PLUGIN_CONTINUE

show_motd(id,"rules.txt","Rules")
return PLUGIN_CONTINUE
}

public say_maps(id,level,cid) {

if (!cmd_access(id,level,cid,1))
return PLUGIN_CONTINUE

show_motd(id,"maps.txt","Maps")
return PLUGIN_CONTINUE
}

public say_motd(id,level,cid) {

if (!cmd_access(id,level,cid,1))
return PLUGIN_CONTINUE

show_motd(id,"motd.txt","24/7 Fun Maps")
return PLUGIN_CONTINUE
}
__________________
KoZxGamex is offline
vvg125
AMX Mod X Beta Tester
Join Date: Dec 2006
Location: Queens (Douglaston), New
Old 05-19-2007 , 03:33   Re: Need Help
Reply With Quote #18

Yep... looks right.
__________________
vvg125 is offline
Send a message via AIM to vvg125 Send a message via MSN to vvg125 Send a message via Yahoo to vvg125
KoZxGamex
Junior Member
Join Date: May 2007
Old 05-19-2007 , 03:34   Re: Need Help
Reply With Quote #19

Sweet it worked, So I can just keep adding on different menues to this?
__________________
KoZxGamex is offline
Reply



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 21:18.


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