AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   Custom Vote Menus (https://forums.alliedmods.net/showthread.php?t=60402)

GHW_Chronic 09-02-2007 17:58

Custom Vote Menus
 
4 Attachment(s)
  • This plugin allows you to create a custom vote with any format you want. Includes the ability to set colors of words / letters and justify options. And then depending on what option won, the plugin will execute whatever you want on the admin/server's console (depending on cvar).

  • Example Syntax:
    • Code:

      [Menu]
      Choose A Mod:

      1. Halo Mod
      2. CSDM
      3. CTF
      4. Fun Mod
      5. Normal Gameplay

      0. Don't Care
      [/Menu]




      [1]
      amx_halomod on
      amx_csdm disable
      amx_ctf 0
      amx_funmod off
      [/1]

      [2]
      amx_halomod off
      amx_csdm enable
      amx_ctf 0
      amx_funmod off
      [/2]

      [3]
      amx_halomod off
      amx_csdm disable
      amx_ctf 1
      amx_funmod off
      [/3]

      [4]amx_halomod off
      amx_csdm disable
      amx_ctf 0
      amx_funmod on
      [/4]

      [5]
      amx_halomod off
      amx_csdm disable
      amx_ctf 0
      amx_funmod off
      [/5]

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

    • The above example would print out the menu that is at the top of the config file (inbetween the [Menu] [ /Menu] ) and show it exactly as it looks. (white text). Then pretending option #5 won (the majority of people voted for it) then the stuff listed between the [5] [ /5] would be executed on admin/server console (again, depending on the cvar setting).

  • Color and Justification symbols:
    • \r - will make anything after it red
    • \y - will make anything after it yellow
    • \w - will make anything after it white
    • \R - will justify to the right

  • Example Menu with Color + Justification:
    • Code:

      [Menu]
      Choose A Mod:

      \y1. \wHalo Mod
      \y2. \wCSDM
      \y3. \wCTF
      \y4. \wFun Mod
      \y5. \wNormal Gameplay\R\rBoring

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

    • The above will look like this:
    • Choose A Mod:

      1. Halo Mod
      2. CSDM
      3. CTF
      4. Fun Mod
      5. Normal Gameplay________Boring

      0. Don't Care
    • Please note that some mods don't support menu color. (CS/CZ do, TFC doesn't)

  • Commands:
    • amx_cvote <vote name>
    • amx_cvote_list - Lists all custom votes in the votes directory.

  • CVARs:
    • cvote_show - Show what a player voted for (1=show 0=don't show) (Default: 1)
    • cvote_execute - Execute winning console command(s) where? (1=admin's console 2=server's console)

  • Config Files:
    • Name.ini - Name is the name of the vote menu that will be used with the commands.
    • configs/votes - Place all vote menu config files into there (votes directory has to be created).
    • Only 1 vote menu per config file.
    • [Menu] and [#] can be in any order you want.
    • Even if an option doesn't execute anything you must have the [#][ /#] (on seperate lines)

Arkshine 09-02-2007 18:18

Re: Custom Vote Menus
 
Seems very useful. :)

hackziner 09-02-2007 18:29

Re: Custom Vote Menus
 
Yep, seems to be great

+k

ABC3Q 09-02-2007 19:40

Re: Custom Vote Menus
 
I demand approval.

GHW_Chronic 09-02-2007 19:43

Re: Custom Vote Menus
 
Quote:

Originally Posted by ABC3Q (Post 526564)
I demand approval.

lol I only released this like 2 hours ago :P

eXtinct 09-02-2007 20:00

Re: Custom Vote Menus
 
Still...this plugin must be approved!

BlackMilk 09-03-2007 06:16

Re: Custom Vote Menus
 
Very nice, this should make for interesting things :wink:

Tartooob 09-03-2007 06:39

Re: Custom Vote Menus
 
Nice !

soccdoodcss 09-04-2007 23:26

Re: Custom Vote Menus
 
:shock:Wow:shock: I'm jealous... :cry:

The-Bitter 10-02-2007 09:54

Re: Custom Vote Menus
 
What do you mean with 1 menu per configs file??
should we create more votes files??


All times are GMT -4. The time now is 15:39.

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