Raised This Month: $32 Target: $400
 8% 

Map Requests


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   General Purpose        Approver:   ConnorMcLeod (74)
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 05-04-2010 , 19:31   Map Requests
Reply With Quote #1

Code:
MAP REQUESTER

=============

Description:
    This plugin is made for clients to request maps that aren't on the server easier instead of asking admins every time they play about new maps.
    It creates 2 files located in the amxmodx/data folder.
    - req_stats.ini holds the requested maps and the amount of requests on a map.
    - req_logs.ini holds the steamid's and mapnames of every requests, so abusers can be punished.
    There are a max number of requests a client can make, to avoid spammers.


Commands:
    say /requestmap <mapname> : Adds a request to the ini file.
    requestmap <mapname> : Adds a request to the ini file.
    checkreq : Lists the requested maps in console.

Credits:
    Fysiks: Improving my code.
    Seta00: Figuring out an annoying bug.

Cvars:
    amx_mapreq_advertdelay 340.0    : The delay between 2 adverts printed.
    
Changelog:
    v1.0 - Initial release
    v1.1 - Minor fix, added checkreq command
    v1.2 - Fixed admin access(fysiks)
    v1.3 - Added colorchat(optional)
    v1.4 - Added prefix
    v1.5 - Added chat command, map check, no empty requests
    v1.6 - Added console command again. (Fysiks asked)
    v1.7 - Rewrote the whole plugin.
         - Added stats StatsFile.
         - Uses CellTrie.
         - Uses 2th file to log steamid's.
    v1.8 - Fixed 2 potential bugs (Fysiks)

Notes:
    - You can change the number of maps clients can choose by editing #define MAX_REQUESTS 3 to the number you want
    - To enable colorchat, uncomment the line //define USE_CC
    - To change the prefix edit new const Prefix[] = "Your prefix"
Servers using this plugin: http://www.game-monitor.com/search.p...&type=variable
Attached Files
File Type: sma Get Plugin or Get Source (map_request.sma - 1782 views - 8.7 KB)
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.

Last edited by drekes; 12-29-2010 at 20:51.
drekes is offline
Send a message via MSN to drekes
#8 SickneSS
BANNED
Join Date: Sep 2008
Location: Here
Old 05-04-2010 , 19:35   Re: Map Requests
Reply With Quote #2

nominations?
You give credits to you,i lol'd at that
#8 SickneSS is offline
Send a message via MSN to #8 SickneSS Send a message via Skype™ to #8 SickneSS
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 05-04-2010 , 19:36   Re: Map Requests
Reply With Quote #3

Quote:
Originally Posted by #8 SickneSS View Post
nominations?
No, this is for maps that aren't on the server, to see which maps clients would like, without annoying admins with this

Edited my description.
I thought adding myself in credits was normal, because i helped making it
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.

Last edited by drekes; 05-04-2010 at 19:38.
drekes is offline
Send a message via MSN to drekes
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 05-04-2010 , 19:36   Re: Map Requests
Reply With Quote #4

Quote:
Originally Posted by #8 SickneSS View Post
nominations?
You need explain what you mean by that post.

If you mean that there is plugins that do nominations this is different because to nominate a map it must be on the server already.
__________________
fysiks is offline
Jelle
[b]MOAR CANDY[/b]
Join Date: Aug 2009
Location: Denmark
Old 05-04-2010 , 19:37   Re: Map Requests
Reply With Quote #5

You should make MAX_REQUESTS to a cvar instead. Just an idea.
__________________
No idea what to write here...
Jelle is offline
Send a message via MSN to Jelle
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 05-04-2010 , 19:38   Re: Map Requests
Reply With Quote #6

Quote:
Originally Posted by Jelle View Post
You should make MAX_REQUESTS to a cvar instead. Just an idea.
Debatable but I had him set up like this so that it would be an easy transition to using a cvar for it.
__________________
fysiks is offline
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 05-04-2010 , 19:40   Re: Map Requests
Reply With Quote #7

6 post already? thread is nearly 10 minutes old.

@fysiks:
The description seems confusing, maybe you can make a better one since my english isn't perfect.
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
epic .
Senior Member
Join Date: Oct 2009
Location: China
Old 05-04-2010 , 20:15   Re: Map Requests
Reply With Quote #8

Wonderful.
We can know which maps are the player want to play with this plugin.
__________________
Quote:
Destinies in my AWP sight are all alike;
Destinies out of my AWP sight in its own way.
epic . is offline
Send a message via ICQ to epic .
wrecked_
Veteran Member
Join Date: Jan 2010
Location: New York (GMT-5)
Old 05-04-2010 , 20:44   Re: Map Requests
Reply With Quote #9

Nice job, drekes. There's a typo in the advert() function, though. Should be "type" instead of "typ".
__________________
[ Paid Requests ]
DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT
wrecked_ is offline
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 05-04-2010 , 20:46   Re: Map Requests
Reply With Quote #10

Quote:
Originally Posted by wrecked_ View Post
Nice job, drekes. There's a typo in the advert() function, though. Should be "type" instead of "typ".
Thanks wrecked_, i was waiting for you to show up.
i'll fix it right away. (i really should take english lessons)

Fixed
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.

Last edited by drekes; 05-04-2010 at 20:48.
drekes is offline
Send a message via MSN to drekes
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:24.


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