AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   Fun vote (https://forums.alliedmods.net/showthread.php?t=7748)

mICKE 11-19-2004 17:35

Fun vote
 
2 Attachment(s)
Author: mICKE
WWW: None, Yet
Version: 0.40
Requires: Nothing Special
Updated: 25st November 04

Allows you to have a vote before every game if you wants fun mode.
When the vote is it will pause or unpause the plugins you have defined.

Works for NS, CS and should work for any other mod.

Commands:
amx_funvote_start - Starts a new fun vote

Cvars:
amx_funvote_wait 60 - How long the server shall wait before it starts the vote, NOT for NS
amx_funvote_hud 1 - 0/1 . Decides if the hud with the changes should be displayed
amx_funvote_uservote 1 - 0/1 . Decides if users could start a vote
amx_funvote_delay 60 - The delay to next vote nomination
amx_funvote_ratio 0.30 - How many players that shall nominate before the vote starts

How To Define Plugins:
Define the plugins you want to have in fun mode in the funvote.ini file.
If you dont have it: Start the server with the plugin and it will create the file for you.
The syntax is as following:
plugin statsu.amxx - Adds a plugin into fun vote (you must also have it in plugins.ini. its a limit in AMXX)
pause sv_cheats 0 - when voted off, the cvars with pause first will be run.
enable sv_cheats 1 - when voted on, the cvars with enable will be run.
hud Low Gravity - adds a line to the changes hud

Please tell me if you know some bugs/have any suggestions/ideas or something like that.

Quote:

Last Changelog:
V 0.40(25.11.04) -
* Added a way so the users can start a vote too

XxAvalanchexX 11-19-2004 19:27

That's good. I know somebody requested this, I'm not sure if it was you or you are doing this for them. However, I wouldn't name this plugin Fun Mode since it isn't really Fun Mode, it's a Fun Mode Vote.

xuvurex 11-19-2004 22:30

so....im not sure i get this....we just put like uwc3.amxx in the fumode.ini and say superhero and eevery map it will have a vote for what mod they vote for?

mICKE 11-20-2004 03:22

Right now its for ns, but i can make it work for cs too if somebody wants it

mICKE 11-20-2004 08:06

It works like this:

You define which plugins you want to have in funmode like test.amxx.
When the vote is it will pause or unpause the plugins.

Does anyone want me to "port" this plugin to cs?

fitzy6868 11-20-2004 13:13

?
 
Should the plugins be in the plugins.ini also or just the funmode.ini?

atambo 11-20-2004 13:22

I'd like this plugin ported to cs if ya can sounds like a good idea for a server that doesn't always want to be a custom map server 8)

mICKE 11-20-2004 13:54

Quote:

Originally Posted by fitzy6868
Should the plugins be in the plugins.ini also or just the funmode.ini?

the plugins should be in both.
This plugin "only" pauses and unpauses the plugins.
Do you want that you only have to specify them in funmode.ini?

Quote:

Originally Posted by atambo
I'd like this plugin ported to cs if ya can sounds like a good idea for a server that doesn't always want to be a custom map server 8)

Ok, shall see what i can do.
Is a vote when every map starts ok?

-=STN=- MaGe 11-20-2004 15:03

when pause UWC3 and warcraft 3 and csdm the still have settings running on the server. i mean you cant pause them. you can only place a command to turn them on or off like csdm_enable 1

atambo 11-20-2004 15:31

a vote at like 1 minute into the map for the different plugins would be nice so everyone has time to load the map or if its possible make it so an admin can start the vote but having them both would be best

mICKE 11-20-2004 15:50

Im working on cs compability right now.

Shall i add configuration options in the funmode.ini file?
like:
pause csdm_enable 0
and:
unpause csdm_enable 1

mICKE 11-20-2004 19:13

Here you have the new version!

Check first post for description

atambo 11-20-2004 20:19

thanx alot I'm putting it on my server right now :D
Questions...So to add missiles I would put this in the .ini file: plugin missiles.amxx? Then when the vote happens it lets you vote yes or no on the plugin? Or when the vote happens it shows all the plugins and you vote for 1 of the plugins to be turned on or off? Another thing is when the plugin missiles is unpaused it still wont be enabled by default so is there any way to have it also do a command for the plugin like amx_missiles 1 or something like that?

mICKE 11-20-2004 20:35

So to add missiles I would put this in the .ini file: plugin missiles.amxx?
Yes

Then when the vote happens it lets you vote yes or no on the plugin
Or when the vote happens it shows all the plugins and you vote for 1 of the plugins to be turned on or off?
You will vote for every plugin in one vote, not a vote for every plugin

Another thing is when the plugin missiles is unpaused it still wont be enabled by default so is there any way to have it also do a command for the plugin like amx_missiles 1 or something like that?
I dont understand this question but:
Every time you change map all the plugins will be enabled because they are in plugins.ini.

atambo 11-20-2004 22:42

for question number 3 what if a plugin is running but it is off by default so the you would need to type a command like amx_missiles 1 to enable the firing of missiles. any way of making this plugin not only unpause the plugin but also turn the missiles on by using the amx_missiles 1 command?

mICKE 11-21-2004 09:32

New Version released!
* Changed Name because fun mode vote was not good (mode)
* Cleaned up some code in plugin_init
* Added the command amx_funvote_wait
* Fixed so the names in funvote.ini isn't case sensitive
* Added a small debug for file handler

Quote:

Originally Posted by atambo
for question number 3 what if a plugin is running but it is off by default so the you would need to type a command like amx_missiles 1 to enable the firing of missiles. any way of making this plugin not only unpause the plugin but also turn the missiles on by using the amx_missiles 1 command?

Yes you can do it.
with pause and enable commands you can run cvars (enable amx_missiles 1)

atambo 11-21-2004 15:27

I'm not sure if I'm doing this right but this is what I put in my funvote.ini:
Code:

plugin amx_ejl_missiles.amxx
enable amx_luds_missiles 1
plugin weaponarena.amx
enable weaponarena random
plugin anti-zoom.amxx
enable sv_antizoom 1

I have done a few votes on and off as the outcome and so far I haven't seen any plugins paused when it is off and the cvars like amx_luds_missiles 1 still seem to be at 0 (default) after then vote wins.

mICKE 11-21-2004 15:52

Quote:

Originally Posted by atambo
I'm not sure if I'm doing this right but this is what I put in my funvote.ini:
Code:

plugin amx_ejl_missiles.amxx
enable amx_luds_missiles 1
plugin weaponarena.amx
enable weaponarena random
plugin anti-zoom.amxx
enable sv_antizoom 1

I have done a few votes on and off as the outcome and so far I haven't seen any plugins paused when it is off and the cvars like amx_luds_missiles 1 still seem to be at 0 (default) after then vote wins.

You should have "pause amx_luds_missiles 0" in it to.
So it you run "amxx list" or "amx_plugins" the plugins wont be showed paused?
Are you checking cvar from server console?
Btw, what is amx_luds_missiles?

atambo 11-21-2004 16:21

amx_luds_missiles is the cvar that turns on and off the missiles plugin I have on my server. Its set to 0 by default so I wasted to have people vote for funmode and if it passes then missiles get turned on.

mICKE 11-22-2004 14:20

New version!
Version 0.23
* Added more debug and changed how it works

atambo: Can you tell me more about your problem?

Please let me know if you want any more feuture in the plugin.
Should i have a cvar for debug or a define (it is a define now)?

atambo 11-22-2004 19:12

thanx for all the help mICKE I've got it all setup and works great :D even got the new hud messages working so now people know what they are enabling heh

mICKE 11-23-2004 02:43

New Version! Version 0.24
* Added a new hud that says what it would change
* Added a cvar amx_funvote_hud

The same that atambo got .

mICKE 11-23-2004 04:15

New version again! Version 0.26
* Optimized debug code.
* Optimized ini file comment.

mICKE 11-23-2004 12:52

1 Attachment(s)
Here you have a screenshot in ns:
Its much brighter in game.

Can someone give me a screenshot in cs?

mICKE 11-23-2004 15:44

New version! Version 0.28
* Removed a stupid effect on hud
* Changed how vote random works

mICKE 11-25-2004 15:47

New Version! Version 0.40.
* Added a way so the users can start a vote too.

Rewrote some parts because of this. I think everyone should update. it has bugfixes too.

-=STN=- MaGe 11-26-2004 15:59

can you explain how the voting system works..

i have say 15 mods that we place on the server now and again..,,

i was wondering if you place all 15 mods in the .ini file and a vote comes up which chooses 4 mods out of the file and places them in the vote. and that decides the mods for the nest map or current map.

ill show you my .ini file to see what i mean. i havent set it up fully yet.

Code:
plugin he_arena.amxx plugin weaponarena.amxx plugin nvg_mode.amxx plugin ShieldnKnivez.amxx plugin timebomb.amxx plugin mp5_mod.amxx plugin xweapons.amxxplugin drug.amxx plugin csdm_mod.amxx plugin FlashnKnivez.amxxplugin war3x.amxx plugin runemod.amxx plugin Pistol_Arena.amxx plugin amx_matrix.amxx plugin uwc3.amxx plugin FFX.amxx plugin sentryguns.amxx

mICKE 11-26-2004 16:17

Quote:

Originally Posted by -=STN=- MaGe
can you explain how the voting system works..

i have say 15 mods that we place on the server now and again..,,

i was wondering if you place all 15 mods in the .ini file and a vote comes up which chooses 4 mods out of the file and places them in the vote. and that decides the mods for the nest map or current map.

ill show you my .ini file to see what i mean. i havent set it up fully yet.

Code:
plugin he_arena.amxx plugin weaponarena.amxx plugin nvg_mode.amxx plugin ShieldnKnivez.amxx plugin timebomb.amxx plugin mp5_mod.amxx plugin xweapons.amxxplugin drug.amxx plugin csdm_mod.amxx plugin FlashnKnivez.amxxplugin war3x.amxx plugin runemod.amxx plugin Pistol_Arena.amxx plugin amx_matrix.amxx plugin uwc3.amxx plugin FFX.amxx plugin sentryguns.amxx

No, you will have a vote for all of the plugins.

if you want the users to see the goodies :D i suggest that you use the command hud

atambo 11-26-2004 19:51

if your using weaponarena you can always add:
Code:

enable weaponarena random
or something like that so it not only turns the plugin on but enables it :D
this is what my .ini looks like:
Code:

enable sv_gravity 200
pause sv_gravity 800
enable df_hook_on 1
pause df_hook_on 0
enable df_hook_sky 1
pause df_hook_sky 0
enable df_hook_players 1
pause df_hook_players 0
enable df_hook_instant 1
pause df_hook_instant 0
enable df_hook_speed 2.5
pause df_hook_speed 2.5
enable weaponarena random
pause weaponarena off
hud Low Gravity
hud Random Weaponarena
hud Hook


Timmi the savage 01-08-2005 11:45

Quote:

Originally Posted by mICKE
Quote:

Originally Posted by -=STN=- MaGe
can you explain how the voting system works..

i have say 15 mods that we place on the server now and again..,,

i was wondering if you place all 15 mods in the .ini file and a vote comes up which chooses 4 mods out of the file and places them in the vote. and that decides the mods for the nest map or current map.

ill show you my .ini file to see what i mean. i havent set it up fully yet.

Code:
plugin he_arena.amxx plugin weaponarena.amxx plugin nvg_mode.amxx plugin ShieldnKnivez.amxx plugin timebomb.amxx plugin mp5_mod.amxx plugin xweapons.amxxplugin drug.amxx plugin csdm_mod.amxx plugin FlashnKnivez.amxxplugin war3x.amxx plugin runemod.amxx plugin Pistol_Arena.amxx plugin amx_matrix.amxx plugin uwc3.amxx plugin FFX.amxx plugin sentryguns.amxx

No, you will have a vote for all of the plugins.

if you want the users to see the goodies :D i suggest that you use the command hud

I hope your not running FFX.amxx......

You should wait until this next version comes out k. sorry about that.

-=STN=- MaGe 01-08-2005 13:59

i been waiting all week for it

mICKE 01-12-2005 05:57

Quote:

Originally Posted by -=STN=- MaGe
i been waiting all week for it

What have you been waiting for?

Sorry that i have forgotten this thread.
Is there anything that i should add to coming versions?

sonoob 04-24-2005 00:51

is there a way to get it so they can vote for each plug in individually


ps this is for cs 1.6

rucy 04-04-2019 23:07

Re: Fun vote
 
What should I do to make the player able to use it! Voting instructions?


All times are GMT -4. The time now is 10:24.

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