Raised This Month: $ Target: $400
 0% 

votemap delay


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
9evill
Senior Member
Join Date: Apr 2007
Location: Lithuania
Old 08-28-2007 , 06:08   votemap delay
Reply With Quote #1

Hi, i want to delay votemap for 10 minutes from map beginning, so noone can vote for a new map (i hate when admins votes for new maps at beginning of new one). How can i do that?

Thanks
9evill is offline
9evill
Senior Member
Join Date: Apr 2007
Location: Lithuania
Old 08-30-2007 , 08:11   Re: votemap delay
Reply With Quote #2

Anyone?
9evill is offline
Battousai-sama
Veteran Member
Join Date: Jul 2007
Old 09-01-2007 , 21:32   Re: votemap delay
Reply With Quote #3

Go in plugins section and suggest it ^_^

this section for Amxmod X related issues.
__________________
Battousai-sama is offline
Send a message via MSN to Battousai-sama
Lee
AlliedModders Donor
Join Date: Feb 2006
Old 09-02-2007 , 03:59   Re: votemap delay
Reply With Quote #4

Attached Files
File Type: sma Get Plugin or Get Source (adminvote.sma - 687 views - 15.7 KB)

Last edited by Lee; 09-02-2007 at 04:02.
Lee is offline
9evill
Senior Member
Join Date: Apr 2007
Location: Lithuania
Old 09-03-2007 , 10:43   Re: votemap delay
Reply With Quote #5

Lee, what exactly you modificied in this plugin? Some commands should i know? Or its just hardcoded to deny votemap for 10 minutes of round begining?
9evill is offline
Lee
AlliedModders Donor
Join Date: Feb 2006
Old 09-03-2007 , 14:56   Re: votemap delay
Reply With Quote #6

Quote:
Originally Posted by 9evill View Post
Or its just hardcoded to deny votemap for 10 minutes of round begining?
Yes.

Would you rather I added a cvar? If you'd prefer an error message detailing why a map vote cannot be started and how long one must wait, that's not a problem. I can also allow players with a certain flag to start a map vote at all times.

Code:
    new Float:voting = get_cvar_float("amx_last_voting")     new Float:gametime = get_gametime()     if (voting > gametime)     {         console_print(id, "%L", id, "ALREADY_VOTING")         return PLUGIN_HANDLED     }         if ( (gametime < 600.0) || (voting && voting + get_cvar_float("amx_vote_delay") > gametime) )     {         console_print(id, "%L", id, "VOTING_NOT_ALLOW")         return PLUGIN_HANDLED     }

Last edited by Lee; 09-03-2007 at 15:04.
Lee is offline
9evill
Senior Member
Join Date: Apr 2007
Location: Lithuania
Old 09-04-2007 , 09:14   Re: votemap delay
Reply With Quote #7

Yes it would be nice to have a cvar for controling the delay time. Some message also would be good, but not nesecery.
About flags it could be amx_map (flag f) what users should have ability to start votemap.

Thanks
9evill is offline
Lee
AlliedModders Donor
Join Date: Feb 2006
Old 09-04-2007 , 14:17   Re: votemap delay
Reply With Quote #8

Cvar: amx_minmapvotetime - time in seconds (default 600)
Attached Files
File Type: sma Get Plugin or Get Source (adminvote.sma - 662 views - 16.0 KB)
Lee is offline
9evill
Senior Member
Join Date: Apr 2007
Location: Lithuania
Old 09-05-2007 , 05:35   Re: votemap delay
Reply With Quote #9

Hi plugins isnt working, an admin with flags abcdeijnr was able to start votemap.
9evill is offline
_Master_
Senior Member
Join Date: Dec 2006
Old 09-05-2007 , 08:35   Re: votemap delay
Reply With Quote #10

What is this doing in AMXX Support/Help ?!?
_Master_ is offline
Old 11-18-2009, 15:02
xdanyx
This message has been deleted by Exolent[jNr]. Reason: Why are you helping someone in a 2 year old topic?
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 16:44.


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