AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Unapproved/Old Plugins (https://forums.alliedmods.net/forumdisplay.php?f=27)
-   -   RockTheVote Custom V1.8 (https://forums.alliedmods.net/showthread.php?t=70459)

DA 04-25-2008 11:54

RockTheVote Custom V1.8
 
1 Attachment(s)
RockTheVote Custom V1.8


Made by DA
Date: 25.04.2008


Description
This plugin allows the players on your server to vote for a mapvoting.
The players can say in the chat "/rockthevote", "rockthevote" or "rtv" to vote for the vote.
The maps will be automaticle loaded from the maps.ini (if it exists) or from the mapcyclefile.


Installation
1. Download the rockthevote_custom.sma and compile it on your local machine.
2. Put the rockthevote_custom.amxx in your plugins folder.
3. Add at the end from the plugins.ini this line: rockthevote_custom.amxx
4. Open your amxx.cfg (mod/addons/amxmodx/configs/) and add the cvar's.
5. Restart or change the map from your server.


CVAR's
amx_timevote number - Default 5 - After 5 MINUTES (Default) is rockthevote allowed.
amx_howmanypercentage float - Default 0.30 - When 30% of the players said rockthevote then comes the mapvote.
amx_howmanyvotes number - Default 8 - When 8 (default) players said rockthevote then comes the mapvote.
amx_rocktime time - Default 10 - After 10 (default) seconds the voting is over and the server change the map.
amx_directmapchange - Default 0 - The server will display a hudmessage and at the start of the new round the map will be changed.


To Do
Nothing. If you have more ideas to add then feel free to
pm me.


Credits
Deagles - The main idea
arkshine - Some code
X-olent - Percentage idea
Cheap_Suit - Mapchooser code
AMXX Def Team - Some code from mapchooser


Notes
1. You have to compile it on your local machine. Because the webcompiler isn't updated.
2. I think it doesn't run on windows because the directory construction is other than linux. Test it, if it's not work pm me please.
3. This plugin doesn't run without admincmd.amxx.


Code:

V1.8
- Added a function that the map will changed at the start of the new round

V1.7
- Renamed the cvar "amx_howmanypercantage" to "amx_howmanypercentage"

V1.6
- All players get a message if a player said rtv


Arkshine 04-25-2008 12:39

Re: RockTheVote Custom V1.0
 
It uses dynamic array. So, amxx 1.8.x is required. Since the online compiler is not up-to-date, that's why it fails. You have to compile localy.

ch3cker 04-25-2008 12:44

Re: RockTheVote Custom V1.0
 
only when 8 players said rtv it will be rocked ?
so when there are only 7 players it cant be rocked ?

DA 04-25-2008 12:50

Re: RockTheVote Custom V1.0
 
Quote:

Originally Posted by ch3cker (Post 616692)
only when 8 players said rtv it will be rocked ?
so when there are only 7 players it cant be rocked ?

Look at the cvar's. You can set it on your own.

Exolent[jNr] 04-25-2008 15:19

Re: RockTheVote Custom V1.0
 
I think that you should use a percentage instead of the amount of players.
Your way, if you are on the map by yourself, lets say surfing, you won't be able to change the map to what you want to play on because 7 more people that aren't in the server must rockthevote.

R@tch3t 04-25-2008 16:55

Re: RockTheVote Custom V1.0
 
I'm only able to use the web compiler, can someone upload a compile version? Thx R@tch3t

DA 04-25-2008 17:03

Re: RockTheVote Custom V1.0
 
Quote:

Originally Posted by R@tch3t (Post 616813)
I'm only able to use the web compiler, can someone upload a compile version? Thx R@tch3t

Look in your pm folder.

Quote:

Originally Posted by X-olent (Post 616784)
I think that you should use a percentage instead of the amount of players.
Your way, if you are on the map by yourself, lets say surfing, you won't be able to change the map to what you want to play on because 7 more people that aren't in the server must rockthevote.

Okay. I will add it with the new version. Thanks.

Brad 04-25-2008 19:14

Re: RockTheVote Custom V1.0
 
Quote:

Originally Posted by X-olent (Post 616784)
I think that you should use a percentage instead of the amount of players.
Your way, if you are on the map by yourself, lets say surfing, you won't be able to change the map to what you want to play on because 7 more people that aren't in the server must rockthevote.

If you're looking for something that contains this, and is fuller featured than this, you can try a plugin I've had under development for months now. Galileo.

It's due for a new release soon. You can find the last release and the change log at the link I gave.

Exolent[jNr] 04-25-2008 20:59

Re: RockTheVote Custom V1.1
 
I'm already using Deag's, and I don't want to switch plugins after I have set everything up.
I suggested that because it works better with percentage like I've experienced.

R@tch3t 04-26-2008 05:14

Re: RockTheVote Custom V1.1
 
Thats a bad link, check your messages DA?


All times are GMT -4. The time now is 11:18.

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