[CSS]Vote Weapon 1.1
My very first mod. It allows players to vote for a weapon. If the vote is successful, all players and bots on the
server will receive the new weapon and are forced to use it. Primary and secondary weapons are treated seperately, so you can still buy your own secondary if the primary is set and vice versa.
It is also possible to disable primary and/or secondary weapons.
Votes are reset after map change.
- Commands
- !vwp or !voteweapon starts a new vote
- !vwphelp prints a list of possible commands
- !vwplist prints a list of weapon names (to use for !vwpset)
- !vwpclear clears primary and secondary weapon vote
- !vwpclearp or !vwpclearprimary clears primary vote
- !vwpclears or !vwpclearsecondary clears secondary vote
- !vwpsetp <weapon> or !vwpsetprimary <weapon> sets primary
- !vwpsets <weapon> or !vwpsetsecondary <weapon> sets secondary
- cVars (cfg generated automatically in cstrike/cfg/sourcemod)
- voteweapon_version
- voteweapon_enabled "1"
- voteweapon_primary_enabled "1" //vote for primary enabled
- voteweapon_secondary_enabled "1" //vote for secondary enabled
- voteweapon_ignore_bots "0" //bots are not affected by vwp if enabled
Update 1.1
- Fixed a bug where votes were not reset after map change.
- Bots are now affected unless disabled.
- It's possible to remove weapons from the vote menu now. Just add the weapon's name to "cstrike/cfg/sourcemod/weaponVote_disabledWeapons.txt" (auto generated). The weapon name must be from the following list, in no particular oder:
Example file: