Raised This Month: $95 Target: $400
 23% 

Map MOTD


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Admin Commands        Approver:   Emp` (115)
Deviance
Veteran Member
Join Date: Nov 2004
Location: Sweden
Old 02-08-2007 , 14:33   Map MOTD
Reply With Quote #1

Map MOTD

About:
This plugin makes so you can have a MOTD depending on the map when you type /mm. This is very useful for example to show map-rules or different things.
To use this, you need to make a map in your configs-dir called mapmotd, Name the map-files for example de_dust2.txt to display at de_dust2.

If your planning on using a webhost, upload the files, and change the line
Code:
#define IS_FILE 1
To
Code:
#define IS_FILE 0
Inside the source-code, and then change the MM_url cvar to your site where you have the files.

Cvars:
MM_enabled (Def: 1) - Disabled if 0, Enabled if 1
MM_url (Def: "http://www.mysite.com/") - Points to your webhost where you got the files (only use if you enabled it) Leave a "/" at the end.

Commands:
say /mm - Displays the Map MOTD

Thanks to Tramp for the idea!
Attached Files
File Type: rar map_motd.rar (3.2 KB, 1504 views)
File Type: sma Get Plugin or Get Source (map_motd.sma - 2253 views - 1.2 KB)

Last edited by Deviance; 04-27-2007 at 14:37.
Deviance is offline
SAMURAI16
BANNED
Join Date: Sep 2006
Old 02-08-2007 , 15:15   Re: Map MOTD
Reply With Quote #2

nice plugin
I suggest to use "equali /mm" for prevent any problems on server .
For example "mm" it's a schorcut for an swear here
Also remove variable "url" because you never use it

Last edited by SAMURAI16; 02-08-2007 at 15:24.
SAMURAI16 is offline
Send a message via MSN to SAMURAI16
Deviance
Veteran Member
Join Date: Nov 2004
Location: Sweden
Old 02-08-2007 , 15:36   Re: Map MOTD
Reply With Quote #3

Quote:
Originally Posted by SAMURAI16 View Post
nice plugin
I suggest to use "equali /mm" for prevent any problems on server .
For example "mm" it's a schorcut for an swear here
Also remove variable "url" because you never use it
url is used when IS_FILE is 0. The /mm wouldn't be detected because it's "/mm", contain only looks for the whole command.
Deviance is offline
manchimocyrus
Member
Join Date: Nov 2006
Location: Vitan
Old 02-08-2007 , 15:44   Re: Map MOTD
Reply With Quote #4

Nice plugin. "/mm" it's a schorcut for an swear on my srv
manchimocyrus is offline
SAMURAI16
BANNED
Join Date: Sep 2006
Old 02-08-2007 , 15:46   Re: Map MOTD
Reply With Quote #5

on my server also . For that i suggested to be used equali instead of containi
Anyway :~
SAMURAI16 is offline
Send a message via MSN to SAMURAI16
Deviance
Veteran Member
Join Date: Nov 2004
Location: Sweden
Old 02-08-2007 , 15:49   Re: Map MOTD
Reply With Quote #6

Quote:
Originally Posted by manchimocyrus View Post
Nice plugin. "/mm" it's a schorcut for an swear on my srv
Quote:
Originally Posted by SAMURAI16 View Post
on my server also . For that i suggested to be used equali instead of containi
Anyway :~
You can change the command youself if you want.
Deviance is offline
Tramp
Senior Member
Join Date: Aug 2005
Old 02-08-2007 , 19:18   Re: Map MOTD
Reply With Quote #7

Thanks man +karma
Tramp is offline
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 02-08-2007 , 20:33   Re: Map MOTD
Reply With Quote #8

You should only check if the file exists if it's not on url mode.
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
VEN
Veteran Member
Join Date: Jan 2005
Old 02-09-2007 , 04:06   Re: Map MOTD
Reply With Quote #9

To configuring map settings including motdfile you have to use default AMX Mod X maps configuration feature. See the AMX Mod X documentation for details. The only feature that i can see is that "say /mm - Displays the Map MOTD", but i believe this already done in some other plugin(s).
VEN is offline
Deviance
Veteran Member
Join Date: Nov 2004
Location: Sweden
Old 02-09-2007 , 07:07   Re: Map MOTD
Reply With Quote #10

Quote:
Originally Posted by VEN View Post
To configuring map settings including motdfile you have to use default AMX Mod X maps configuration feature. See the AMX Mod X documentation for details. The only feature that i can see is that "say /mm - Displays the Map MOTD", but i believe this already done in some other plugin(s).
I have searched for similar plugins and hasen't find anything similar, and i beleave this is more advanced then using the map setting plugin, as you can use a webhost to use the files whit.
Quote:
Originally Posted by Emp` View Post
You should only check if the file exists if it's not on url mode.
Thanks i have added that.

Last edited by Deviance; 02-09-2007 at 07:12.
Deviance is offline
Reply


Thread Tools
Display Modes

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 02:26.


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