Hello.
This is my first plugin, and I made it because of
this request.
Thanks to VEN for critique and help!
Updates:
18/5
Changed ther register event thingy to register_event("CurWeapon", "cur_weapon", "be", "1=0", "2=29") as VEN suggested

And I added so that you can write /voteknife instead.
Fixed some bugs.
23/12
Changed the "2!=knife" to "2!29".
21/12
Added a cvar, for enabling/disabling hud messages.
Now the hud messages is above the cross hair instead of in it
20/12
Fixed some errors (like the rounds were bugged)
Fixed so that the chat won't be spammed each time a message is shown.

Fixed the chat messages (only some of them were visible)
Fixed the weapon event (less code now)
19/12
Added chat messages.
If something should be changed, please say that so I can fix it
Cvars:
Code:
amx_vote_knife 1 // Should plugin be on or off?
amx_vote_knife_time 20.0 // How long time does the players have to vote?
amx_vote_knife_ratio 0.5 // How many percent of the players need to vote? (example: 0.1 = 10%)
amx_vote_knife_rounds 3 // How many rounds will it be knife only?
amx_vote_knife_hud 1 // Hud messages on or off?
amx_vote_knife_cooldown 3 // How many rounds to wait after the knife only rounds?
NOTE: restmenu.amxx and fun module needs to be activated for this plugin to work.
"My mouth is dry... My face is numb..." ~ Brain Stew - Green Day