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

Help.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Severinsen7
Member
Join Date: May 2010
Location: Denmark
Old 10-11-2010 , 12:49   Help.
Reply With Quote #1

Does some1 knows if theres a plugin like where you can type /rules and then your motd will show up, instead of a text file?

Could be cool if some1 knows where to find it, have been searching all over, and even tryed to edit some other plugins to make this work, but I can't.

It should be when you type ingame /rules it should pick your (motd.txt)

From a Hopefully Severinsen
__________________
[IMG]http://img715.**************/img715/3512/sevensigmu1.jpg[/IMG]
Severinsen7 is offline
nikhilgupta345
Veteran Member
Join Date: Aug 2009
Location: Virginia
Old 10-11-2010 , 12:58   Re: Help.
Reply With Quote #2

Code:
#include <amxmodx>

public plugin_init()
{
    register_plugin( "Motd", "1.0", "nikhilgupta345" )
    register_clcmd( "say /rules", "motd" )
}

public motd( id )
{
    show_motd( id, "motd.txt", "Rules:" )
}
Change motd.txt inside of show_motd to w/e location your motd is at. It already starts at cstrike so if it's in your configs folder you would put

"addons/amxmodx/configs/motd.txt"
__________________
Quote:
Originally Posted by DarkGod View Post
nikhilgupta generates his plugins using sheer awesome.
If you like my work, please
nikhilgupta345 is offline
Send a message via ICQ to nikhilgupta345 Send a message via Yahoo to nikhilgupta345
Welgericht
Member
Join Date: Jul 2010
Old 10-11-2010 , 13:01   Re: Help.
Reply With Quote #3

PHP Code:
#include < amxmodx >

public plugin_init() 
{
    
register_plugin("Showrules","1.0","Doomsday")
    
register_clcmd ("say /rules" "rules");
    
register_clcmd ("say_team /rules" "rules");
    
register_clcmd ("say !rules" "rules");
    
register_clcmd ("say_team !rules" "rules");
    
register_clcmd ("say rules" "rules");
    
register_clcmd ("say_team rules" "rules");
}
public 
rules(id)
{
 
show_motd(id,"motd.txt")

Welgericht is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 10-12-2010 , 00:35   Re: Help.
Reply With Quote #4

Quote:
Originally Posted by Severinsen7 View Post
instead of a text file?
The MOTD is a text file BTW.
__________________
fysiks 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 12:54.


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