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

Map reporter


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Server Management        Approver:   Hawk552 (427)
Ywa*NL
Senior Member
Join Date: Apr 2005
Location: The Netherlands
Old 12-18-2006 , 14:24   Map reporter
Reply With Quote #1

Map Reporter
Description
A player will be allowed to report the current map.
Things that will be saved in the file "configs\mapreports.log":
Map name, Player name, Player Steam-ID, Player IP, Time and Reason.
How to report: "reportmap REASON".
Admins will be allowed to view reports with the command "reports".

CVars
mreporter_enable (Default: 1) - Enable/Disable plugin
mreporter_admins (Default: 0) - Only admins can report maps

Commands
"reportmap REASON" - Report a map.
"reports" - View all current reports in a MOTD.

Installation
- Place "mapreporter.amxx" in your "plugins" directory
- Add "mapreporter.amxx" into your "plugins.ini" file (In directory: "configs")
- You're all done

Change-log
v1.2 < v1.1
- Fixed double commands (You see 2 answers)
- Fixed bug which prevents using other mods than CStrike
- Fixed round start information message
- Renamed CVars

v1.1 < v1.0
- Changed name from "Admin Bad Map Reporter" to "Map Reporter"
- Fixed some minor bugs
- Changed commands
- Added command to allow admins to view all reports in MOTD.
Attached Files
File Type: sma Get Plugin or Get Source (mapreporter.sma - 1559 views - 3.7 KB)
__________________

Last edited by Ywa*NL; 12-21-2006 at 13:29. Reason: New version!
Ywa*NL is offline
Send a message via MSN to Ywa*NL
_Master_
Senior Member
Join Date: Dec 2006
Old 12-18-2006 , 15:37   Re: Admin Bad Map Reporter
Reply With Quote #2

try not to use ResetHUD for this
Code:
register_event("ResetHUD", "information", "b")
read this for details
http://forums.alliedmods.net/showthread.php?t=42159

All in all gj , though I'm not sure about how usefull this is...
_Master_ is offline
Ywa*NL
Senior Member
Join Date: Apr 2005
Location: The Netherlands
Old 12-18-2006 , 15:55   Re: Admin Bad Map Reporter
Reply With Quote #3

Are the params still the same _master_ ?

Edit
Fixed, thanks .
__________________

Last edited by Ywa*NL; 12-18-2006 at 15:59.
Ywa*NL is offline
Send a message via MSN to Ywa*NL
godlike
Senior Member
Join Date: Apr 2005
Old 12-18-2006 , 16:38   Re: Admin Bad Map Reporter
Reply With Quote #4

this is usefull. n1 plugin
__________________
Read the rules before posting something stupid: click here

Any questions about amxx PM me
godlike is offline
Ywa*NL
Senior Member
Join Date: Apr 2005
Location: The Netherlands
Old 12-18-2006 , 16:41   Re: Admin Bad Map Reporter
Reply With Quote #5

If anyone has ideas for expanding this plugin. I'd like to hear them ;) .
__________________
Ywa*NL is offline
Send a message via MSN to Ywa*NL
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 12-18-2006 , 17:13   Re: Admin Bad Map Reporter
Reply With Quote #6

Looks good.

For future reference, it's better practice to do this:

Code:
if(get_cvar_num("badmap_admins"))

rather than

Code:
if(get_cvar_num("badmap_admins") != 0)

and this:

Code:
if(!get_cvar_num("badmap_admins"))

rather than

Code:
if(get_cvar_num("badmap_admins") == 0)

Also, please use pcvars.

I'm going to approve this anyway since it appears to be good enough. Just use pcvars instead.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
Ywa*NL
Senior Member
Join Date: Apr 2005
Location: The Netherlands
Old 12-19-2006 , 01:53   Re: Admin Bad Map Reporter
Reply With Quote #7

Thanks Hawk552. I'll update my plugin later today.
__________________
Ywa*NL is offline
Send a message via MSN to Ywa*NL
Lt Llama
Senior Member
Join Date: Aug 2004
Old 12-19-2006 , 04:11   Re: Admin Bad Map Reporter
Reply With Quote #8

Hard to think if any improvements to this, its good as it is, but I couldn't stop trying . Maybe the name narrows the use of this for general map issues. It could be anything, not just bad things. If you would call it "Admin Map Messenger" instead of "Admin Bad Map Reporter" it could have a general purpose. I know you could use it as that now, but the name misleads a bit.
It could be messages like "Great map! Add this to the rotation!", "Spawn a gigantic christmas tree at the player spawn", "Nice map! What other maps did this mapper make?".

One idea could be for the admin checking the log file. Add something when admin with ADMIN_CFG level connects. If he do then show a message that there are map messages logged, and possibly show them as a hud message.

Can't think of anything else

++k
__________________
A dodo: Used to describe someone without common sense and who always has the pathetic confused look on their face when a question is asked.
Lt Llama is offline
Ywa*NL
Senior Member
Join Date: Apr 2005
Location: The Netherlands
Old 12-19-2006 , 10:28   Re: Admin Bad Map Reporter
Reply With Quote #9

Good idea's! Thanks. It would also be nice is admins can watch the log into a MOTD. I will try.
__________________
Ywa*NL is offline
Send a message via MSN to Ywa*NL
Ywa*NL
Senior Member
Join Date: Apr 2005
Location: The Netherlands
Old 12-20-2006 , 16:22   Re: Map reporter
Reply With Quote #10

- Bump -

Updated to 1.1 see first post to see change-log. Thanks to Lt Llama and Hawk552!
__________________
Ywa*NL is offline
Send a message via MSN to Ywa*NL
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 03:50.


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