amx_votemap not allowed in the first 3 minutes
hi, i need a modification of amx_votemap, i need that the amx_votemap not allowed in the first 3 minutes of the map, i dont know how to do this.
thanks, and sorry my english, is very bad :S |
Re: amx_votemap not allowed in the first 3 minutes
1 Attachment(s)
@NowakFlip:
Stop being unhelpful. Just stop. At best it just confuses people. @G u i l l e: Simply done. I'll show you the code changes I made to allow the feature of not allowing an amx_votemap until a set number of seconds has passed. I've also made the changes I'm showing in the attached adminvote.sma file. I applied the changes against the 1.76b version of adminvote.sma. Please note that while I am very confident the changes I supplied will work as advertised, I have not actually tested the code. Please respond after you've tested it to let me know if it works as expected. After making the changes, or using the supplied file, you'll need to add the following to your amxx.cfg file (for 3 minutes, you'll want to change the 0.0 to 180.0): Code:
// seconds after map start after which map voting can beginIn plugin_init() I only added a single line which registers the new CVAR. Code:
Code:
|
Re: amx_votemap not allowed in the first 3 minutes
sorry offtopic but Brad how do you Highlight parts of code like that? :D
|
Re: amx_votemap not allowed in the first 3 minutes
One word: Magic.
If you'd like a more substantial answer, continue reading. To highlight a line of code in any code window on this forum, place @@ at the start of the line you want highlighted. |
Re: amx_votemap not allowed in the first 3 minutes
To find out yourself next time, just hit the quote button and read the bbcode.
|
Re: amx_votemap not allowed in the first 3 minutes
I know the way how to do it without additional coding but one issue: it will affect on any amxx voting (not just amx_votemap), let me know if interested.
I'm not talking about NowakFilip's way, he is obviously messed two different things. |
Re: amx_votemap not allowed in the first 3 minutes
You're referring to setting the value of amx_last_voting, correct?
|
Re: amx_votemap not allowed in the first 3 minutes
Yes.
|
Re: amx_votemap not allowed in the first 3 minutes
Quote:
Code:
|
| All times are GMT -4. The time now is 04:51. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.