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

Advanced Map Rules


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Server Management       
Kryzu
Senior Member
Join Date: Feb 2009
Old 03-13-2010 , 12:16   Advanced Map Rules
Reply With Quote #1

Advanced Map Rules
v1.3
Kryzu



Info:
My very first public plugin.

When the current map is de_train, then the plugin searches for de_train.txt.
If there is no de_train.txt then plugin uses the default.txt(if cvar is set to 1, otherwise it doesn't do anything).
It reads data from /addons/amxmodx/configs/rules directory. Put there the .txt files.


Commands:
  • /rules - Shows MOTD of the current map rules
Cvars:
  • amx_rules_advert 0/1(default: 1) - Advert after every 2 rounds.
  • amx_rules_default 0/1(default: 1) - Use default file when there is no mapname.txt and prefix file(with amx_rules_prefix 1)
  • amx_rules_prefix 0/1(default: 1) - Use prefix file when there is no mapname.txt file
Chancing cvars takes affect after mapchange. I'm checking cvars once a map to use as less ressources as possible.

Credits:
ConnorMcLeod - Used some of his written codes(Looking for DIR and FILE)
master4life - Optimizing the code
xPaw - Improving the code
Changelog:
Code:
18th May 2010
v1.3
Added prefix support
Optimized code - thx xPaw
10th April 2010
v1.2
Added ColorPrint
Updated advert system
Reuploaded 11th April - optimizing - v1.2.1
3th April 2010
v1.1
Some important changes about checking the map rules file
3th March 2010
v1.0
Public release
Attached Files
File Type: sma Get Plugin or Get Source (advancedmaprules.sma - 1148 views - 2.4 KB)
__________________

Last edited by Kryzu; 05-18-2010 at 15:48. Reason: v1.3
Kryzu is offline
Brreaker
Senior Member
Join Date: Oct 2009
Location: Constanta, Romania
Old 03-13-2010 , 12:34   Re: Advanced Map Rules
Reply With Quote #2

You forgot to upload the SMA
Brreaker is offline
Send a message via MSN to Brreaker Send a message via Yahoo to Brreaker
Kryzu
Senior Member
Join Date: Feb 2009
Old 03-13-2010 , 12:46   Re: Advanced Map Rules
Reply With Quote #3

Probably you was trying to download it when i was changing the version
__________________
Kryzu is offline
SpILL
Veteran Member
Join Date: Oct 2009
Location: Karachi, Pakistan
Old 03-13-2010 , 13:26   Re: Advanced Map Rules
Reply With Quote #4

Lol, yet another rule plugin..
Not anymore please..
__________________


SpILL is offline
fR4gn0tiX!
Senior Member
Join Date: Nov 2009
Location: Georgia, Tbilisi
Old 03-13-2010 , 14:08   Re: Advanced Map Rules
Reply With Quote #5

Quote:
Originally Posted by SpILL View Post
Lol, yet another rule plugin..
Not anymore please..
It's a Map Rules. So every map will have different rules
__________________
fR4gn0tiX! is offline
Send a message via Skype™ to fR4gn0tiX!
SpILL
Veteran Member
Join Date: Oct 2009
Location: Karachi, Pakistan
Old 03-13-2010 , 14:59   Re: Advanced Map Rules
Reply With Quote #6

Quote:
Originally Posted by fR4gn0tiX! View Post
It's a Map Rules. So every map will have different rules
Then would have been different name instead of RULE, because people won't click on this thread unless its named Rule.
/Sorry
__________________


SpILL is offline
kanatzu
Veteran Member
Join Date: Oct 2007
Location: Sweden
Old 03-13-2010 , 15:53   Re: Advanced Map Rules
Reply With Quote #7

Really nice... 5/5 stars O_O

Edit: (For a first public )
__________________




Quote:
Originally Posted by wrecked_ View Post
Stop saying words before I sodomize you with a cucumber.
kanatzu is offline
Send a message via MSN to kanatzu
Kryzu
Senior Member
Join Date: Feb 2009
Old 03-13-2010 , 16:04   Re: Advanced Map Rules
Reply With Quote #8

Thank you!

If you guys have any ideas they are all welcome.
In future you can share your motds so i can make a package of them
__________________
Kryzu is offline
kanatzu
Veteran Member
Join Date: Oct 2007
Location: Sweden
Old 03-13-2010 , 16:11   Re: Advanced Map Rules
Reply With Quote #9

There isen't really more to add.

I happend to look at the code, and oh my it's short o_o
__________________




Quote:
Originally Posted by wrecked_ View Post
Stop saying words before I sodomize you with a cucumber.
kanatzu is offline
Send a message via MSN to kanatzu
Kryzu
Senior Member
Join Date: Feb 2009
Old 03-13-2010 , 16:14   Re: Advanced Map Rules
Reply With Quote #10

m4l also helped to make it about 8 lines shorter
BTW, i mostly thought in which plugins are the same functions i need, finded them and here it is...
__________________
Kryzu 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 21:53.


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