Raised This Month: $ Target: $400
 0% 

Vote Knife plugin


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Plugin Info:     Modification:   ALL        Category:          Approver:   Brad (55)
Rains
Member
Join Date: Dec 2005
Location: Sweden
Old 12-19-2005 , 09:42   Vote Knife plugin
Reply With Quote #1

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.
Attached Files
File Type: sma Get Plugin or Get Source (knife_only_vote.sma - 4020 views - 6.2 KB)
__________________
"My mouth is dry... My face is numb..." ~ Brain Stew - Green Day
Rains is offline
Send a message via MSN to Rains
 



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 15:07.


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