View Single Post
bandora
Junior Member
Join Date: Nov 2005
Old 07-08-2009 , 15:13   Re: *Plugin Request* Server Information(s)
Reply With Quote #5

Quote:
Originally Posted by micke1101 View Post
This is a very easy coded plugin just that you have to repeat yourself.
Here is the base to show maps.txt as motd when writing /maps.
But id suggest you take a look at this: http://forums.alliedmods.net/showthread.php?t=24092

Code:
#include <amxmodx>
#include <amxmisc>

public plugin_init() {
    register_plugin("Motd example", "0.1", "Micke1101")
    
    register_clcmd("say /maps","ShowMotd");
}
public ShowMotd(id){
    show_motd(id, "maps.txt")
}
Hey thanks for the script.. But can you add on how to make the plugin display HUD messages in lets say Blue color that says like: "[FS]: Type /bhopmaps to show the bhop maps that are on the server." And then a minute or two later it will show another message for lets say.. /surfmaps. and it cycles through those 6 commands that I mentioned in my older post.

Thanks in advance,

BaNdOrA

P.S.: Just to be clear so in what I am requesting the code would be something like this?

Code:
#include <amxmodx>
#include <amxmisc>

public plugin_init() {
    register_plugin("Motd example", "0.1", "Micke1101")
    
    register_clcmd("say /drmaps","ShowMotd");
}
public ShowMotd(id){
    show_motd(id, "dr.txt")
}

{
    register_clcmd("say /surfmaps","ShowMotd");
}
public ShowMotd(id){
    show_motd(id, "surf.txt")
}

{
    register_clcmd("say /kzmaps","ShowMotd");
}
public ShowMotd(id){
    show_motd(id, "kz.txt")
}

{
    register_clcmd("say /bhopmaps","ShowMotd");
}
public ShowMotd(id){
    show_motd(id, "bhop.txt")
}

{
    register_clcmd("say /help","ShowMotd");
}
public ShowMotd(id){
    show_motd(id, "help.txt")
}

{
    register_clcmd("say /listmaps","ShowMotd");
}
public ShowMotd(id){
    show_motd(id, "allmaps.txt")
}

Last edited by bandora; 07-08-2009 at 15:18.
bandora is offline