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

RockTheVote Custom V1.8


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Server Management       
DA
Veteran Member
Join Date: Nov 2005
Location: Germany/Münster
Old 04-25-2008 , 11:54   RockTheVote Custom V1.8
Reply With Quote #1

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
Attached Files
File Type: sma Get Plugin or Get Source (rockthevote_custom.sma - 51841 views - 7.9 KB)
__________________

Last edited by DA; 05-31-2008 at 11:38. Reason: New Version
DA is offline
Old 04-25-2008, 12:37
atomen
This message has been deleted by atomen. Reason: 1.8
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 04-25-2008 , 12:39   Re: RockTheVote Custom V1.0
Reply With Quote #2

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.
__________________
Arkshine is offline
ch3cker
Veteran Member
Join Date: Jun 2005
Location: Deutschland / Baden-Würt
Old 04-25-2008 , 12:44   Re: RockTheVote Custom V1.0
Reply With Quote #3

only when 8 players said rtv it will be rocked ?
so when there are only 7 players it cant be rocked ?
__________________
SORRY 4 MY BAD ENGLISH
ch3cker is offline
DA
Veteran Member
Join Date: Nov 2005
Location: Germany/Münster
Old 04-25-2008 , 12:50   Re: RockTheVote Custom V1.0
Reply With Quote #4

Quote:
Originally Posted by ch3cker View Post
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.
__________________
DA is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 04-25-2008 , 15:19   Re: RockTheVote Custom V1.0
Reply With Quote #5

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.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
R@tch3t
Senior Member
Join Date: Sep 2005
Location: Fort Myers Fl.
Old 04-25-2008 , 16:55   Re: RockTheVote Custom V1.0
Reply With Quote #6

I'm only able to use the web compiler, can someone upload a compile version? Thx R@tch3t
__________________
R@tch3t is offline
DA
Veteran Member
Join Date: Nov 2005
Location: Germany/Münster
Old 04-25-2008 , 17:03   Re: RockTheVote Custom V1.0
Reply With Quote #7

Quote:
Originally Posted by R@tch3t View Post
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 View Post
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.
__________________
DA is offline
Brad
AMX Mod X Team Member
Join Date: Jun 2004
Old 04-25-2008 , 19:14   Re: RockTheVote Custom V1.0
Reply With Quote #8

Quote:
Originally Posted by X-olent View Post
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.
__________________

Last edited by Brad; 02-15-2015 at 18:49. Reason: removed url that no longer exists
Brad is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 04-25-2008 , 20:59   Re: RockTheVote Custom V1.1
Reply With Quote #9

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.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
R@tch3t
Senior Member
Join Date: Sep 2005
Location: Fort Myers Fl.
Old 04-26-2008 , 05:14   Re: RockTheVote Custom V1.1
Reply With Quote #10

Thats a bad link, check your messages DA?
__________________
R@tch3t is offline
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 10:20.


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