Raised This Month: $94 Target: $400
 23% 

Vote Weapons


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Gameplay        Approver:   GHW_Chronic (70)
mateo10
Veteran Member
Join Date: Jan 2006
Old 11-24-2006 , 10: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 - 2257 views - 16.9 KB)
File Type: txt voteweapons.txt (7.9 KB, 996 views)

Last edited by mateo10; 12-15-2006 at 17:06.
mateo10 is offline
sub
Senior Member
Join Date: Nov 2004
Location: Morristown, New Jersey
Old 11-24-2006 , 11:19   Re: Vote Weapons (5 plugins)
Reply With Quote #2

Why not just combine them into one plugin?
__________________
[img]http://img409.**************/img409/1079/sublimefd6.png[/img]
I Have Owned City14 - City17 - Zackscity
sub is offline
Send a message via AIM to sub Send a message via MSN to sub
Xtreme-Coder
Member
Join Date: Oct 2006
Location: Scripting Amxx
Old 11-24-2006 , 11:25   Re: Vote Weapons (5 plugins)
Reply With Quote #3

Yeah, why dont you just combine them all into one plugin rather than having 5 diffrent plugins it would make it alot easier for people.
__________________
[IMG]http://img511.**************/img511/4757/xtremecoderfc8.png[/IMG]

|[ Current Projects ]|

Musical Jukebox [||||||||||||] (50 %)

Party Mod [||||||||||||] (20 %)
Xtreme-Coder is offline
godlike
Senior Member
Join Date: Apr 2005
Old 11-25-2006 , 09:10   Re: Vote Weapons (5 plugins)
Reply With Quote #4

N1 plugin i made it so it is in 1plugins i dont know if it works but it compiles with no problems all the credits go to MaTTE

*REMOVED*
__________________
Read the rules before posting something stupid: click here

Any questions about amxx PM me

Last edited by godlike; 11-30-2006 at 14:32.
godlike is offline
mateo10
Veteran Member
Join Date: Jan 2006
Old 11-25-2006 , 11:54   Re: Vote Weapons (5 plugins)
Reply With Quote #5

Thanks godlike
mateo10 is offline
godlike
Senior Member
Join Date: Apr 2005
Old 11-26-2006 , 08:15   Re: Vote Weapons
Reply With Quote #6

does it work?
__________________
Read the rules before posting something stupid: click here

Any questions about amxx PM me
godlike is offline
mateo10
Veteran Member
Join Date: Jan 2006
Old 11-26-2006 , 08:34   Re: Vote Weapons
Reply With Quote #7

Think so, but I'm not able to test it. Can someone test this and come back with results?
Thanks,
MaTTe
mateo10 is offline
godlike
Senior Member
Join Date: Apr 2005
Old 11-26-2006 , 09:47   Re: Vote Weapons
Reply With Quote #8

ok i tested it on my windows server but it doesnt work check this :


L 11/26/2006 - 15:007: String formatted incorrectly - parameter 8 (total 7)
L 11/26/2006 - 15:007: [AMXX] Displaying debug trace(plugin "weapons1.amxx")
L 11/26/2006 - 15:007: [AMXX] Run time error 25: parameter error
L 11/26/2006 - 15:007: [AMXX] [0] 12108.attach::display_results3 (line
__________________
Read the rules before posting something stupid: click here

Any questions about amxx PM me
godlike is offline
godlike
Senior Member
Join Date: Apr 2005
Old 11-26-2006 , 09:51   Re: Vote Weapons
Reply With Quote #9

I think its a small bug but i dont know what it is.
__________________
Read the rules before posting something stupid: click here

Any questions about amxx PM me
godlike is offline
Brad
AMX Mod X Team Member
Join Date: Jun 2004
Old 11-26-2006 , 18:21   Re: Vote Weapons
Reply With Quote #10

I could swear something like this was already made...
__________________
Brad is offline
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 20:08.


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