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

Vote Weapons


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Plugin Info:     Modification:   ALL        Category:   Gameplay        Approver:   GHW_Chronic (70)
mateo10
Veteran Member
Join Date: Jan 2006
Old 11-24-2006 , 09:10   Vote Weapons
Reply With Quote #1

Vote Weapons
Last update: 12 December 2006

Description
With this plugin all players will be able to start a vote about Pistols, SMGs, Rifles, Shotguns, Machinegun and Knife.
At first it was 5 plugins but godlike made it into one.

Installation
The .amxx goes into ./amxmodx/plugins/
The .txt goes into ./amxmodx/data/lang/

User commands
//smgvote
say votesmgs
say /votesmgs

//pistolvote
say votepistols
say /votepistols

//riflevote
say voterifles
say /voterifles

//shotgunvote
say voteshotguns
say /voteshotguns

//machinegunvote
say votemachineguns
say /votemachineguns

//knifevote
say voteknives
say /voteknives

Admin Commands
amx_votemachineguns
amx_voteshotguns
amx_votesmgs
amx_votepistols
amx_voterifles
amx_voteknives

Cvars
amx_smgvote <1|0> Allow smg vote? (default 1)
amx_pistolvote <1|0> Allow pistol vote? (default 1)
amx_riflevote <1|0> Allow rifle vote? (default 1)
amx_shotgunvote <1|0> Allow shotgun vote? (default 1)
amx_machinegunvote <1|0> Allow machinegun vote? (default 1)
amx_knifevote <1|0> Allow knife vote? (default 1)
amx_admintovote <1|0> Decides wether the user shall have admin access to vote or not (default 0)
amx_votetime <float value> Decides how long the vote should be. (default 20.0)

_____________________________________

Changelog

v2.3
-Added Multi-Lingual Support. Post translations here

v2.2
-Added knife vote
-Cleaned up the code a bit

v2.1c
-Changed the most if statements to switch statements
-Made it look a bit cleaner
-Reduced file size with 3 kb

v2.1b
-Changed the if(key) statements to switch(key).

v2.1
-Made the code look cleaner.
-Made it into one plugin of Brad's request.

v2.0
-Added plugin where only admins can start the votes.
-Added a delay so the players can't vote if they've already started a vote during the last 120 seconds (two minutes).
-Added so they can't start a vote if they're already voting.
-Fixed some bugs with the plugin.

v1.1
-Changed all the cvars to pcvars and added pcvars "votemachinegun",
"voteshotgun", "votesmg", "votepistol" and "voterifle".

_____________________________________

Enjoy!

Translations
English (mateo10)
Swedish (mateo10)
German (D o o m)
Spanish (KylixMynxAltoLAG)
Polish (trawiator)


AMX MOD X VERSION 1.70 IS NEEDED FOR THIS PLUGIN
Attached Files
File Type: sma Get Plugin or Get Source (voteweapons.sma - 2610 views - 16.9 KB)
File Type: txt voteweapons.txt (7.9 KB, 1150 views)

Last edited by mateo10; 12-15-2006 at 16:06.
mateo10 is offline
 



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 17:04.


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