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

Custom Vote Menus


Post New Thread Reply   
 
Thread Tools Display Modes
GHW_Chronic
SourceMod Donor
Join Date: Sep 2004
Location: Texas
Old 10-02-2007 , 13:40   Re: Custom Vote Menus
Reply With Quote #11

yes. read the main post. every vote has its own file and it is placed inside of the folder.
GHW_Chronic is offline
Send a message via AIM to GHW_Chronic
MueckE
Senior Member
Join Date: Nov 2005
Old 10-13-2007 , 06:18   Re: Custom Vote Menus
Reply With Quote #12

I Like this Plugin, but it doesnt work really for me

I cant use the 4th and 5th voteoption!
if i vote point 4 nothing happens and than a massage comes up
"Tie between #0 and #9. No action taken."

dont understand it^^

the second thing is that CTF and Gungame dont work.
The Pugins are ok and working on special maps
but with the vote they dont enable

My ini is called "modchooser.ini"

-------------------------------------------------------
[Menu]
Choose A Mod:

\r1. \wJuggernaut
\r2. \wStar Wars
\r3. \wGungame
\r4. \wCTF
\r5. \wNormal Gameplay\R\rBoring

\r0. \wDon't Care
[/Menu]



[1]
amx_pausecfg pause GHW_Starwars_II.amxx
amx_pausecfg pause csdm_main.amxx
amx_pausecfg pause csdm_spawn_preset.amxx
amx_pausecfg pause csdm_misc.amxx
amx_pausecfg pause csdm_protection.amxx
amx_pausecfg pause csdm_ffa.amxx
amx_pausecfg pause csdm_itemmode.amxx
amx_ctf 0
csdm_disable
amx_gungame 0
amx_pausecfg enable GHW_Juggernaut3[1].0.amxx
amx_jn 1
[/1]

[2]
amx_pausecfg pause GHW_Juggernaut3[1].0.amxx
amx_pausecfg pause csdm_main.amxx
amx_pausecfg pause csdm_spawn_preset.amxx
amx_pausecfg pause csdm_misc.amxx
amx_pausecfg pause csdm_protection.amxx
amx_pausecfg pause csdm_ffa.amxx
amx_pausecfg pause csdm_itemmode.amxx
amx_ctf 0
csdm_disable
amx_gungame 0
amx_jn 0
amx_pausecfg enable GHW_Starwars_II.amxx
[/2]

[3]
amx_pausecfg pause GHW_Starwars_II.amxx
amx_pausecfg pause GHW_Juggernaut3[1].0.amxx
amx_pausecfg pause csdm_main.amxx
amx_pausecfg pause csdm_spawn_preset.amxx
amx_pausecfg pause csdm_misc.amxx
amx_pausecfg pause csdm_protection.amxx
amx_pausecfg pause csdm_ffa.amxx
amx_pausecfg pause csdm_itemmode.amxx
csdm_disable
amx_jn 0
amx_ctf 0
amx_gungame 1
[/3]

[4]
amx_pausecfg pause GHW_Starwars_II.amxx
amx_pausecfg pause GHW_Juggernaut3[1].0.amxx
amx_pausecfg pause csdm_main.amxx
amx_pausecfg pause csdm_spawn_preset.amxx
amx_pausecfg pause csdm_misc.amxx
amx_pausecfg pause csdm_protection.amxx
amx_pausecfg pause csdm_ffa.amxx
amx_pausecfg pause csdm_itemmode.amxx
csdm_disable
amx_jn 0
amx_gungame 0
amx_ctf 1
[/4]

[5]
amx_pausecfg pause GHW_Starwars_II.amxx
amx_pausecfg pause GHW_Juggernaut3[1].0.amxx
amx_pausecfg pause csdm_main.amxx
amx_pausecfg pause csdm_spawn_preset.amxx
amx_pausecfg pause csdm_misc.amxx
amx_pausecfg pause csdm_protection.amxx
amx_pausecfg pause csdm_ffa.amxx
amx_pausecfg pause csdm_itemmode.amxx
csdm_disable
amx_jn 0
amx_gungame 0
amx_ctf 0
[/5]

[0]
say Why doesn't anybody care :'(
[/0]

------------------------------------------------------------

i dont know what it means "Tie between #0 and #9. No action taken."
it is only with point 4 and 5
for example i put juggernaut to point 4 and it doesnt work
-> "Tie between #0 and #9. No action taken."
when juggernaut is on point 1, 2 or 3 it works.

and why CTF and Gungame dont work at all?
plz help me
MueckE is offline
GHW_Chronic
SourceMod Donor
Join Date: Sep 2004
Location: Texas
Old 10-13-2007 , 15:46   Re: Custom Vote Menus
Reply With Quote #13

Should be fixed now, had a small typo at the beginning of the script. thx for bug reporting.
GHW_Chronic is offline
Send a message via AIM to GHW_Chronic
MueckE
Senior Member
Join Date: Nov 2005
Old 10-14-2007 , 10:23   Re: Custom Vote Menus
Reply With Quote #14

now point 1 doesnt work!
2 - 5 are ok

and i still dont know how to activate CTF with your voteplugin!

normallly i have CTF activated at de_aztec, so i have a de_aztec.cfg in the maps directory with the command
ctf_enabled 1
thats all, ctf is activated at de_aztec
if i use this command with your voteplugin it says
"unknown command ctf_enabled"
if i use amx_ctf 1
than there is a restart but ctf is not activ, so there are no flags
the only way is to load the rcon and write in the console
rcon ctf_enabled 1
or just ctf_enabled 1 in a map.cfg
so what is the cvar for your voteplugin?
MueckE is offline
GHW_Chronic
SourceMod Donor
Join Date: Sep 2004
Location: Texas
Old 10-14-2007 , 23:45   Re: Custom Vote Menus
Reply With Quote #15

same exact error as last time cause I'm a retard. So it should work now, all numbers 0-9 should work. And the problem with ctf_enable i'm about to check out. you should be using it like this:

Code:
[Menu]
CTF?

1. Yes
2. No
[/Menu]
[1]
amx_ctf 1
[/1]
[2]
amx_ctf 0
[/2]
If I find a problem then I'll post it in the CTF plugin thread.

edit: the above works fine, there is no problem with CTF if you use it as it says above it works fine. As well you shouldn't have to use any pause commands to manually pause plugins. there should be toggle commands that you can put into there. As well if you want to set a CVAR on a vote you have to do:
Code:
amx_cvar mp_freezetime 2.0
etc.

Last edited by GHW_Chronic; 10-14-2007 at 23:54.
GHW_Chronic is offline
Send a message via AIM to GHW_Chronic
MueckE
Senior Member
Join Date: Nov 2005
Old 10-15-2007 , 08:20   Re: Custom Vote Menus
Reply With Quote #16

ôk, bugs are fixed - it works now very well

i have found out that for CTF the command is
amx_rcon ctf_enabled 1
oder for disable
amx_rcon ctf_enabled 0

this is what i have to type in to the console when i am on the server
and this is what i have to write into your plugin to enable/disable CTF
after a vote
I dont have CTF-plugin paused (with amx pause), its always running cause
when i pause the ctf plugin and enable it for a specific map it doesnt work.
thats why its always active but not enabled
i tryed to pause all plugins like DM, Gungame, CTF .............. cause i want to have better serverperformance.

For me its ok to use the
amx_rcon - command to enabel/disable CTF
amx_ctf 1 still doesnt work at all - there is a restart but ctf isnt enabled
if i type amx_ctf 1 in the console this comes up:
] amx_ctf 1
[CTF] Plugin Enabled.
Unknown command: amx_ctf
"sv_restartround" changed to "9"
"mp_friendlyfire" changed to "0"
"mp_buytime" changed to "9999999"
"sv_restartround" changed to "0"
The game will restart in 9

and nothing happens. no flags spawning, no respawn ......
but if i type in "amx_rcon ctf_enabled 1" it works
MueckE is offline
MueckE
Senior Member
Join Date: Nov 2005
Old 10-15-2007 , 09:22   Re: Custom Vote Menus
Reply With Quote #17

my next question is how to add your voteplugin to the adminmenu

normally you have the points "change map" "vote map" (i think point 4 and 5)
in the amxx menu
i want to have on point 6 "Change Mod" and 7 "Vote for Mod"

Vote for mod:
Gungame
CTF
Starwars
.
.
.
.

So when i choose "vote for mod" and than CTF that the vote for CTF comes up?
I dont know how to add your plugin to the normal amxmenu
MueckE is offline
GHW_Chronic
SourceMod Donor
Join Date: Sep 2004
Location: Texas
Old 10-15-2007 , 14:34   Re: Custom Vote Menus
Reply With Quote #18

me neither.
GHW_Chronic is offline
Send a message via AIM to GHW_Chronic
MueckE
Senior Member
Join Date: Nov 2005
Old 10-16-2007 , 16:08   Re: Custom Vote Menus
Reply With Quote #19

i dont know why, but now its not working any longer^^

when i look to the console it shows that not all commands were taken from name.ini, only the first 12 - 14 commands.

i have runemod and some others plugins and some of them are paused, so there are much more than 14 commands for 1 option
------------------------------------------------------
[Menu]
play Capture the Flag?

\r1. \wYes
\r2. \wNo

\r0. \wdont care
[/Menu]

[1]
amx_pausecfg pause FunMod.amxx
amx_pausecfg pause kungfu.amxx
amx_pausecfg pause GHW_Juggernaut3[1].0.amxx
amx_pausecfg pause knifes_only.amxx
amx_pausecfg pause lights.amxx
amx_pausecfg pause GHW_Starwars_II.amxx
amx_pausecfg pause hidenseek.amxx
amx_pausecfg pause suddendeath.amxx
amx_pausecfg pause walljump.amxx
amx_pausecfg pause super_defusion.amxx
amx_pausecfg pause runemod_base.amxx
amx_pausecfg pause runemod_control.amxx
amx_pausecfg pause runemod_ninja.amxx
amx_pausecfg pause runemod_dismay.amxx
amx_pausecfg pause runemod_fear.amxx
amx_pausecfg pause runemod_frenzy.amxx
amx_pausecfg pause runemod_protection.amxx
amx_pausecfg pause runemod_hunter.amxx
amx_pausecfg pause runemod_invisibility.amxx
amx_pausecfg pause runemod_invulnerabillity.amxx
amx_pausecfg pause runemod_phantom.amxx
amx_pausecfg pause runemod_pistoleer.amxx
amx_pausecfg pause runemod_poison.amxx
amx_pausecfg pause runemod_redeem.amxx
amx_pausecfg pause runemod_regeneration.amxx
amx_pausecfg pause runemod_resistance.amxx
amx_pausecfg pause runemod_seer.amxx
amx_pausecfg pause runemod_soul.amxx
amx_pausecfg pause runemod_speed.amxx
amx_pausecfg pause runemod_strength.amxx
amx_pausecfg pause runemod_theif.amxx
amx_pausecfg pause runemod_unlimitedammo.amxx
amx_pausecfg pause runemod_vampirism.amxx
amx_pausecfg pause runemod_kinetics.amxx
amx_pausecfg pause runemod_spy.amxx
amx_pausecfg pause runemod_feather.amxx
amx_pausecfg pause runemod_teleport.amxx
amx_pausecfg pause runemod_kamikaze.amxx
amx_pausecfg pause runemod_lowrecoil.amxx
amx_pausecfg pause runemod_noreload.amxx
amx_pausecfg pause runemod_explode.amxx
amx_pausecfg pause runemod_highrecoil.amxx
amx_pausecfg pause runemod_lifedrain.amxx
amx_pausecfg pause runemod_noprimaryweapon.amxx
amx_pausecfg pause runemod_smoke.amxx
amx_pausecfg pause runemod_weakness.amxx
amx_rcon ctf_enabled 1
amx_rcon sv_restartround 1
[/1]

[2]
say Capture the Flag weill not be activated
[/2]

[0]
say Vote failed
[/0]
----------------------------------------------------

after the vote nothing happens, in the console the commands
are only to the point:
amx_pausecfg pause runemod_control.amxx
than
vote 2 has won (or whatever the message is after succeded voting)
so when i write
amx_rcon ctf_enabled 1
amx_rcon sv_restartround 1
to the head of this commands its working, cause its part of the first 12 - 14
commands - if it is below all the other commands, just as my example, nothing happens cause the server is only pause the headplugins and is stopping with that as soon the vote has ended.

I think your plugin doesnt check that all commands had been read before beginning "endvote".
I am really confused, it worked fine at the morning, and now it doesnt
Can you help me?

Last edited by MueckE; 10-16-2007 at 16:39.
MueckE is offline
GHW_Chronic
SourceMod Donor
Join Date: Sep 2004
Location: Texas
Old 10-16-2007 , 16:38   Re: Custom Vote Menus
Reply With Quote #20

the way C and most assembly languages work is that there must be a defined max size for things like strings. So you can only have 400 characters inbetween each of the [ #] [/#]s. Yours clearly exceeds 400 characters. There should be 1 runemod command or CVAR that turns the plugin off.
GHW_Chronic is offline
Send a message via AIM to GHW_Chronic
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:39.


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