Raised This Month: $66 Target: $400
 16% 

[06/04/10] Map Bans


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Admin Commands        Approver:   Hawk552 (427)
grimvh2
Veteran Member
Join Date: Nov 2007
Location: Fishdot Nation
Old 12-05-2009 , 14:24   [06/04/10] Map Bans
Reply With Quote #1

Map Bans

Credits :
Kureno : Hello.
Xalus : Testing and my personal spambot.
xPaw : Optimizing.
Exolent : Fixing bugs
Hawk552 : Fixing coding errors

Information :
Ever had a player acting gay on a single map,
or abusing bugs in a single map but you dont want to ban him from your server for that?
Now you can ban players for a specific map.

Commands :
amx_mapban username mapcount(Player has to be in the server and will be banned on the current map.)
mapcount = his ban will be removed after the map he is banned from is played x times (0=permanent)
amx_mapunban mapname authid (authid = Steam : x : xxxxxxxx or somthing like this :p)
amx_removemapbans mapname (removes the mapbans file)

Changelog :
Code:
Version 1.0 : Initial Release.
Version 1.1 : Optimized + Added a mapcount.
Version 1.2 : Added ML support.
Version 1.3 : Added new command.
Version 1.4 : Optimized + Fixing name bug.
Version 1.5 : Optimized
Version 1.6 : Fixed bugs
Version BETA : Added Trie
Version 2.1 : Fixing coding errors
ToDo List :
Empty :s.

MultiLangual :
http://forums.alliedmods.net/showthr...13#post1008513

Installation :
Instal the plugin just like any other plugin, but dont forget to put the Mapbans.txt in your data/lang/ directory.



Attached Files
File Type: txt Mapbans.txt (2.7 KB, 273 views)
File Type: sma Get Plugin or Get Source (mapbans.sma - 967 views - 5.9 KB)
__________________
I am out of order!

Last edited by grimvh2; 04-12-2010 at 08:01.
grimvh2 is offline
crazyeffect
Veteran Member
Join Date: Jul 2008
Location: Belgium
Old 12-05-2009 , 14:43   Re: [05/12/09] Map Bans
Reply With Quote #2

Nice!!!
__________________
crazyeffect is offline
Send a message via MSN to crazyeffect
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 12-05-2009 , 14:44   Re: [05/12/09] Map Bans
Reply With Quote #3

- Save file path in global name, generate it in plugin_init.
- You can create folder your self using something like this if( !dir_exists( ur_dir ) ) mkdir( ur_dir );
- You could use trie for bans instead of always loading file
__________________
xPaw is offline
Alucard^
AMXX Moderator: Others
Join Date: Sep 2007
Location: Street
Old 12-05-2009 , 14:50   Re: [05/12/09] Map Bans
Reply With Quote #4

Wow man, a niceeeeeeeeeeeee good idea... this remember me a plugin for vbulletin to ban for specifics threads or forums =p. Good job!
__________________
Approved Plugins - Steam Profile

Public non-terminated projects:
All Admins Menu, HLTV parameters, Subnick,
Second Password (cool style), InfoZone,
Binary C4 plant/defuse, and more...

Private projects:
NoSpec (+menu), NV Surf Management,
PM Adanved System, KZ longjump2, and more...
Alucard^ is offline
Send a message via Skype™ to Alucard^
grimvh2
Veteran Member
Join Date: Nov 2007
Location: Fishdot Nation
Old 12-05-2009 , 14:52   Re: [05/12/09] Map Bans
Reply With Quote #5

Quote:
Originally Posted by xPaw View Post
- Save file path in global name, generate it in plugin_init.
- You can create folder your self using something like this if( !dir_exists( ur_dir ) ) mkdir( ur_dir );
- You could use trie for bans instead of always loading file
1) Roger That
2) Affirmative
3) First got to check how that works because I never used that.
__________________
I am out of order!
grimvh2 is offline
soolt
BANNED
Join Date: Aug 2009
Location: Lithuania
Old 12-05-2009 , 14:56   Re: [05/12/09] Map Bans
Reply With Quote #6

Nice idea
soolt is offline
Send a message via Skype™ to soolt
Kureno
Junior Member
Join Date: Nov 2009
Old 12-05-2009 , 15:58   Re: [05/12/09] Map Bans
Reply With Quote #7

Nice Idea and Plugin mate
__________________
Coding WebApps (PHP/MYSQL) for plugins
(StandAlone or as plugin for e107 CMS)
PM me


Kureno is offline
DruGzOG
Veteran Member
Join Date: Nov 2007
Location: Unknown
Old 12-05-2009 , 16:47   Re: [05/12/09] Map Bans
Reply With Quote #8

I'd never think you'd release this lol nor anyone else

Haha nice.
__________________

Home of the AMX SUPER
Discord
DruGzOG is offline
Send a message via AIM to DruGzOG
grimvh2
Veteran Member
Join Date: Nov 2007
Location: Fishdot Nation
Old 12-05-2009 , 16:55   Re: [05/12/09] Map Bans
Reply With Quote #9

Quote:
Originally Posted by DruGzOG View Post
I'd never think you'd release this lol nor anyone else
What do you mean by this :p?
__________________
I am out of order!
grimvh2 is offline
Xalus
Veteran Member
Join Date: Dec 2009
Location: Belgium
Old 12-06-2009 , 05:11   Re: [05/12/09] Map Bans
Reply With Quote #10

Great plugin, mate!

Last edited by Xalus; 12-06-2009 at 05:16.
Xalus is online now
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 07:12.


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