Raised This Month: $32 Target: $400
 8% 

RockTheVote Custom V1.8


Post New Thread Reply   
 
Thread Tools Display Modes
sluggo
Member
Join Date: May 2006
Old 04-26-2008 , 05:25   Re: RockTheVote Custom V1.1
Reply With Quote #11

Hi,
A quick question. Does it follow the mapcycle if there is not enough "rtv" or does it show a mapvote at the end of the map?
(would love if it followed mapcycle and only showed the mapvote if players rocked)
sluggo is offline
DA
Veteran Member
Join Date: Nov 2005
Location: Germany/Münster
Old 04-26-2008 , 11:41   Re: RockTheVote Custom V1.1
Reply With Quote #12

Quote:
Originally Posted by sluggo View Post
Hi,
A quick question. Does it follow the mapcycle if there is not enough "rtv" or does it show a mapvote at the end of the map?
(would love if it followed mapcycle and only showed the mapvote if players rocked)
Yes. It only show a mapvote if there are enough 'votes for the vote'.
This plugin do nothing at the end of the map.
__________________
DA is offline
Pamaliska
Senior Member
Join Date: Apr 2006
Location: Edinburgh, UK
Old 04-27-2008 , 06:03   Re: RockTheVote Custom V1.2
Reply With Quote #13

I strongly recommend you to use this code:

Code:
public client_disconnect(id) {        if (rtv[id-1] == id)     count --;     rtv[id-1] = 0;

For an obvious reason (avoid clients reconnecting and triggering count++)

Last edited by Pamaliska; 04-27-2008 at 07:10.
Pamaliska is offline
DA
Veteran Member
Join Date: Nov 2005
Location: Germany/Münster
Old 04-27-2008 , 06:30   Re: RockTheVote Custom V1.2
Reply With Quote #14

Quote:
Originally Posted by Pamaliska View Post
I strongly recommend you to use this code:

Code:
public client_disconnect(id) {        if (rtv[id-1] == id)     count --;     rtv[id-1] = 0;
Okay. Thanks. Make a small update.
__________________
DA is offline
R@tch3t
Senior Member
Join Date: Sep 2005
Location: Fort Myers Fl.
Old 04-27-2008 , 09:59   Re: RockTheVote Custom V1.4
Reply With Quote #15

When I click on "Get Plugin" this is what I get? I PM'd you DA.

Plugin failed to compile! Please try contacting the author.

Welcome to the AMX Mod X 1.76-300 Compiler.
Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team

/home/groups/alliedmodders/forums/files/8/2/2/1/26123.attach(160) : error 017: undefined symbol "ArrayDestroy"
/home/groups/alliedmodders/forums/files/8/2/2/1/26123.attach(16 : error 017: undefined symbol "ArraySize"
/home/groups/alliedmodders/forums/files/8/2/2/1/26123.attach(169) : error 017: undefined symbol "ArrayGetString"
/home/groups/alliedmodders/forums/files/8/2/2/1/26123.attach(186) : error 017: undefined symbol "ArrayDeleteItem"
/home/groups/alliedmodders/forums/files/8/2/2/1/26123.attach(190) : error 017: undefined symbol "ArrayDestroy"
/home/groups/alliedmodders/forums/files/8/2/2/1/26123.attach(192) : warning 204: symbol is assigned a value that is never used: "i_Rand"
/home/groups/alliedmodders/forums/files/8/2/2/1/26123.attach(196) : error 017: undefined symbol "ArrayCreate"
/home/groups/alliedmodders/forums/files/8/2/2/1/26123.attach(196) : warning 213: tag mismatch
/home/groups/alliedmodders/forums/files/8/2/2/1/26123.attach(201) : error 017: undefined symbol "charsmax"
/home/groups/alliedmodders/forums/files/8/2/2/1/26123.attach(209) : error 017: undefined symbol "ArrayPushString"
/home/groups/alliedmodders/forums/files/8/2/2/1/26123.attach(212) : error 017: undefined symbol "ArraySize"

9 Errors.
Could not locate output file /home/groups/amxmodx/public_html/compiled3/26123.amx (compile failed).
__________________
R@tch3t is offline
DA
Veteran Member
Join Date: Nov 2005
Location: Germany/Münster
Old 04-27-2008 , 10:09   Re: RockTheVote Custom V1.4
Reply With Quote #16

Quote:
Originally Posted by R@tch3t View Post
When I click on "Get Plugin" this is what I get? I PM'd you DA.

Plugin failed to compile! Please try contacting the author.

Welcome to the AMX Mod X 1.76-300 Compiler.
Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team

/home/groups/alliedmodders/forums/files/8/2/2/1/26123.attach(160) : error 017: undefined symbol "ArrayDestroy"
/home/groups/alliedmodders/forums/files/8/2/2/1/26123.attach(16 : error 017: undefined symbol "ArraySize"
/home/groups/alliedmodders/forums/files/8/2/2/1/26123.attach(169) : error 017: undefined symbol "ArrayGetString"
/home/groups/alliedmodders/forums/files/8/2/2/1/26123.attach(186) : error 017: undefined symbol "ArrayDeleteItem"
/home/groups/alliedmodders/forums/files/8/2/2/1/26123.attach(190) : error 017: undefined symbol "ArrayDestroy"
/home/groups/alliedmodders/forums/files/8/2/2/1/26123.attach(192) : warning 204: symbol is assigned a value that is never used: "i_Rand"
/home/groups/alliedmodders/forums/files/8/2/2/1/26123.attach(196) : error 017: undefined symbol "ArrayCreate"
/home/groups/alliedmodders/forums/files/8/2/2/1/26123.attach(196) : warning 213: tag mismatch
/home/groups/alliedmodders/forums/files/8/2/2/1/26123.attach(201) : error 017: undefined symbol "charsmax"
/home/groups/alliedmodders/forums/files/8/2/2/1/26123.attach(209) : error 017: undefined symbol "ArrayPushString"
/home/groups/alliedmodders/forums/files/8/2/2/1/26123.attach(212) : error 017: undefined symbol "ArraySize"

9 Errors.
Could not locate output file /home/groups/amxmodx/public_html/compiled3/26123.amx (compile failed).
Right. This is the webcompiler. You have to compile it on your own local machine. I've send you a pm.
__________________
DA is offline
DruGzOG
Veteran Member
Join Date: Nov 2007
Location: Unknown
Old 04-27-2008 , 21:25   Re: RockTheVote Custom V1.4
Reply With Quote #17

I see the difference ok
__________________
DruGzOG is offline
Send a message via AIM to DruGzOG
Cheap_Suit
Veteran Member
Join Date: May 2004
Old 04-28-2008 , 12:39   Re: RockTheVote Custom V1.4
Reply With Quote #18

You can just also trick the default mapchooser (From GG).
PHP Code:
 // AMXX Nextmap Chooser
 
if(find_plugin_byfile("mapchooser.amxx") != INVALID_PLUGIN_ID)
 {
  new 
oldWinLimit get_cvar_num("mp_winlimit"), oldMaxRounds get_cvar_num("mp_maxrounds");
  
set_cvar_num("mp_winlimit",0); // skip winlimit check
  
set_cvar_num("mp_maxrounds",-1); // trick plugin to think game is almost over
  // call the vote
  
if(callfunc_begin("voteNextmap","mapchooser.amxx") == 1)
   
callfunc_end();
  
// set maxrounds back
  
set_cvar_num("mp_winlimit",oldWinLimit);
  
set_cvar_num("mp_maxrounds",oldMaxRounds);
 } 
Then you can just set the map using the amx_nextmap cvar.
Cheap_Suit is offline
sluggo
Member
Join Date: May 2006
Old 04-28-2008 , 12:41   Re: RockTheVote Custom V1.4
Reply With Quote #19

Hi, I love the idea of this plugin!

I have tried it and it may be because I set the values to low that it didn't follow the cvars in amxx.cfg.
Well here is what i entered as my cvars (tried it alone on my testserver)
amx_timevote 5
amx_howmanypercantage 0.10
amx_howmanyvotes 1
amx_rocktime 10


Maptime is set to 20 minutes.

- And I was able to "rtv" at once, it didn't wait 5 minutes to allow me to vote?
- When I didn't make a selection within 10 seconds, it changed to a random map from the vote. (The vote should have been canceled?)
- Maybe have a "0 - Dont vote/continue this map" selection in the menu or something? And if that option wins then the map is not changed?
- It would be nice if it printed the results of the vote, like:
dust2 got 1 vote
inferno got 2 votes
dust got 6 votes
aztec2 got 1 vote
didn't vote 3
Changing to de_dust

Well, I don't know if that is a good idea, but it would be nice. :p

If my "test cvars" are to low maybe you should have in the description that "value between 3-100 is required..." or whatever.

Thanks again for this, soon to be, plugin!

Oooh yes another thing, should I disable the "mapchooser.amxx ; allows to vote for next map" built in plugin.
They maybe work toghter but then I will probably have the hated mapvote at the end of the map. (is it required or not? )

Last edited by sluggo; 04-28-2008 at 12:47. Reason: Spelling
sluggo is offline
DA
Veteran Member
Join Date: Nov 2005
Location: Germany/Münster
Old 04-28-2008 , 15:49   Re: RockTheVote Custom V1.5
Reply With Quote #20

@Cheap_Suit
Thanks. Added it.

@sluggo
Thanks, too. Fixed the bug and added some of your ideas.

Quote:
Originally Posted by sluggo
Oooh yes another thing, should I disable the "mapchooser.amxx ; allows to vote for next map" built in plugin.
They maybe work toghter but then I will probably have the hated mapvote at the end of the map. (is it required or not? )
Nope. If it's enabled, the plugin will detect it and use it. Is it not, the plugin will detect it too and use his own functions.
__________________
DA is offline
Reply



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 18:41.


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