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

Multiple MOTD plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
terrum
AlliedModders Donor
Join Date: Apr 2006
Location: United Kingdom
Old 10-22-2007 , 16:40   Multiple MOTD plugin
Reply With Quote #1

Is there such plugin for AMXX where you can have multiple chat commands (like /rules /commands /admins) and each one show different motd boxes, If it exists, Can someone post the link or the plugin. Thanks. If someone can make it that would be great as well!

Thanks all.
__________________
Thanks,
Terrum.


terrum is offline
Send a message via AIM to terrum Send a message via MSN to terrum Send a message via Skype™ to terrum
JayHaxor
BANNED
Join Date: Aug 2007
Location: New Jersey
Old 10-22-2007 , 19:14   Re: Multiple MOTD plugin
Reply With Quote #2

Here this wasn't hard

PHP Code:
#include <amxmodx>
#include <amxmisc>
new PLUGIN[] = "Commands"
new VERSION[] = "1.0"
new AUTHOR[] = "JayHaxor"
public plugin_init()
{
register_plugin(PLUGIN,VERSION,AUTHOR)
register_clcmd("say /commands","Showcommands")
}
public 
ShowBazooka(id)
{
show_motd(id"commands.txt")
}
public 
client_authorized(id)
{
set_task(30.0"PrintText" ,id)
}
public 
PrintText(id)
{
client_print(idprint_chat,"")

In your server file (the folder before cstrike) make a commands.txt and when ever people type /commands it will show up.

For /rules

or for anything edit this
PHP Code:
 register_clcmd("say /commands","Showmotd"
PHP Code:
 show_motd(id"commands.txt"
Next time post this in the suggestions/requestion forums.

-|LT|DT|J@Y}{@X[0]-R|L33F3R

Last edited by JayHaxor; 10-22-2007 at 19:33.
JayHaxor is offline
terrum
AlliedModders Donor
Join Date: Apr 2006
Location: United Kingdom
Old 10-22-2007 , 19:39   Re: Multiple MOTD plugin
Reply With Quote #3

PHP Code:
public ShowBazooka(id
to

PHP Code:
public Showcommands(id


isn't it ?
__________________
Thanks,
Terrum.


terrum is offline
Send a message via AIM to terrum Send a message via MSN to terrum Send a message via Skype™ to terrum
terrum
AlliedModders Donor
Join Date: Apr 2006
Location: United Kingdom
Old 10-22-2007 , 19:46   Re: Multiple MOTD plugin
Reply With Quote #4

NOTE TO SELF:

PHP Code:
#include <amxmodx>
#include <amxmisc>
new PLUGIN[] = "Commands"
new VERSION[] = "1.0"
new AUTHOR[] = "JayHaxor"
public plugin_init()
{
register_plugin(PLUGIN,VERSION,AUTHOR)
register_clcmd("say /commands","Showcommands")
}
public 
Showcommands(id)
{
show_motd(id"commands.txt")
}
public 
client_authorized(id)
{
set_task(30.0"PrintText" ,id)
}
public 
PrintText(id)
{
client_print(idprint_chat,"")

(WORKS)

Thanks, +karma
__________________
Thanks,
Terrum.


terrum is offline
Send a message via AIM to terrum Send a message via MSN to terrum Send a message via Skype™ to terrum
JayHaxor
BANNED
Join Date: Aug 2007
Location: New Jersey
Old 10-22-2007 , 20:25   Re: Multiple MOTD plugin
Reply With Quote #5

Thanks and have fun with your new plugin !
JayHaxor is offline
terrum
AlliedModders Donor
Join Date: Apr 2006
Location: United Kingdom
Old 11-23-2007 , 18:40   Re: Multiple MOTD plugin
Reply With Quote #6

Yep thanks
__________________
Thanks,
Terrum.


terrum is offline
Send a message via AIM to terrum Send a message via MSN to terrum Send a message via Skype™ to terrum
keenan
New Member
Join Date: Aug 2008
Old 08-15-2008 , 22:08   Re: Multiple MOTD plugin
Reply With Quote #7

Ok, so i tried to change it for /rules and i cannot get it to work at all. /commands does though
keenan is offline
Lord_Destros
Veteran Member
Join Date: Jul 2004
Location: With stupid.
Old 08-16-2008 , 13:38   Re: Multiple MOTD plugin
Reply With Quote #8

You did not change every instance of "commands" to "rules" or a "rules.txt" doesn't exist.
__________________
Quote:
Originally Posted by Twilight Suzuka
Don't worry m'lord. The turtles day will come.
Lord_Destros is offline
Send a message via AIM to Lord_Destros
minimiller
Veteran Member
Join Date: Aug 2007
Location: United Kingdom
Old 08-16-2008 , 13:39   Re: Multiple MOTD plugin
Reply With Quote #9

Why not use GHW_Chronics version?
__________________
minimiller is offline
Send a message via MSN to minimiller
Mirun.Frontier
Member
Join Date: Aug 2008
Old 08-16-2008 , 16:58   Re: Multiple MOTD plugin
Reply With Quote #10

I think they are too lazy to go look for themselves around in GHW's scripts.
__________________
I can't believe I wasted 5 years of my life not knowing how to program correctly. Went too deep into advanced coding before even learning the basics correctly. :c
Mirun.Frontier 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 13:04.


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