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

MOTD mangement


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Server Management        Approver:   BAILOPAN (72)
EKS
Veteran Member
Join Date: Mar 2004
Location: Norway
Old 03-18-2004 , 07:08   MOTD mangement
Reply With Quote #1

The goal of this plugin combin all the MOTD box needs into 1 simple plugin, yet keep it easy to change. It allows: WebBrowsing,Showing rules,Show Player info (CM style) & Internal Adminnews.

FAQ:
Q) How do i add my own say hooks?
A) amx_addsayhook <What to hook> <url or point to a file> ( Remeber quotes around every each part. Example : amx_addsayhook "stats" "http://www.mysite.com/stats" )

Q)Whats the point with the DEFINE SECTION
A)You will be able to disable sections you dont want.

Q)The URL i entered does not show on the client
A)Remember you must be able to browse the page from the client.

Q) How do i change the URL`s if i disable the cvars?
A) If you dont know, dont disable the cvars.

Q) How do i change the default pages ?
A) Change the following cvars: amx_adminnewsurl,amx_publicrulesurl,amx_brows erhomeurl

Credits:
Ops in #AMXmod @ Quakenet for alot of help ( + AssKicR & CheesyPeteza )
Loads ripped from: http://amxmod.net/forums/viewtopic.php?t=17812 ( ST4life )
Web browser code from: http://amxmod.net/forums/viewtopic.php?t=22159 ( f117bomb )
Playerinfo code is based from code of JohnnyGotHisGun

Known issues:
Using url`s with spaces in them in ANY of the cvars will mess things up
amx_browse "http://www.db.no" REQUIRES quotes

Changelog
  • 1.4.0
    - Added: amx_addsayhook "helpme" "http://www.myhelppage" Or any other hook you may want allows admins to add the chat hooks they want
Attached Files
File Type: sma Get Plugin or Get Source (motdm.sma - 8613 views - 9.3 KB)
__________________
Github archive for plugins, the repos for the other c++ projects are there to.

Last edited by EKS; 06-26-2006 at 10:16.
EKS is offline
SniperBeamer
AMX Mod X Founder
Join Date: Jun 2003
Location: Good Old Europe
Old 03-18-2004 , 07:37  
Reply With Quote #2

add cvars for the urls otherwise everyone who uses the plugin has to recompile the plugin
__________________
SniperBeamer is offline
pr0*killa
Member
Join Date: Mar 2004
Location: Estonia,Tallinn
Old 03-18-2004 , 17:17  
Reply With Quote #3

this plugin is created by f117bomb!
__________________
"bug" is a verry big problem
pr0*killa is offline
Send a message via ICQ to pr0*killa
EKS
Veteran Member
Join Date: Mar 2004
Location: Norway
Old 03-18-2004 , 17:24  
Reply With Quote #4

Quote:
Originally Posted by pr0*killa
this plugin is created by f117bomb!
um? no
this is the first plugin i ever made for amx.
EKS is offline
EKS
Veteran Member
Join Date: Mar 2004
Location: Norway
Old 03-21-2004 , 17:48  
Reply With Quote #5

Updated.
  • Changelog
    1.1.0
    - Added: amx_adminnewsurl,amx_publicrulesurl,amx_brows erhomeurl to make it easyer to change where the plugin downloads from.
    - Made a DEFINE SECTION, The plugin is now fully custumizable while compiling.
EKS is offline
EKS
Veteran Member
Join Date: Mar 2004
Location: Norway
Old 05-15-2004 , 23:32  
Reply With Quote #6

Changelog:
  • 1.2.0 ( 16.05.2004 )
    - Added: amx_playersinfo now uses proper HTML code witch means it looks alot more clean
    - Added: say /browse <url>
    - Changed: PublicBrowse() function Completly rewriten
    - Changed: Clean code some up
    - Changed: CMD_PublicBrowse() No longers tries to close the client console
    - Removed: g_default_title as its not realy needed
    - Removed: USE_CVARS #define from most of the plugin
    - Fixed: update_cvars() function not working
    - Fixed: Adminnews not working with #define USE_CVARS 0
EKS is offline
Burnzy
Veteran Member
Join Date: Apr 2004
Old 05-16-2004 , 11:52  
Reply With Quote #7

in 2 months u finally get around to updating it. Nice Work!
__________________
Burnzy is offline
Send a message via AIM to Burnzy
blaah
Member
Join Date: Jun 2004
Location: germany
Old 06-19-2004 , 21:28  
Reply With Quote #8

is these plugin running with cs 1.5 too?
blaah is offline
Send a message via ICQ to blaah
EKS
Veteran Member
Join Date: Mar 2004
Location: Norway
Old 06-19-2004 , 21:52  
Reply With Quote #9

Quote:
Originally Posted by blaah
is these plugin running with cs 1.5 too?
Is it to much to ask that you check the comments?
EKS is offline
blaah
Member
Join Date: Jun 2004
Location: germany
Old 06-19-2004 , 22:33  
Reply With Quote #10

comments? do you mean the comments in the code or these in your first post?
well, i've two problems:
- i'm german and my english is bad, so i dont understand many words
- i'm a nuub

sry if i'm bugging you..
blaah is offline
Send a message via ICQ to blaah
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 22:31.


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