Raised This Month: $32 Target: $400
 8% 

DeathMatch Mode Vote [v1.0]


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Gameplay       
Neeeeeeeeeel.-
Some Guy Yellin'
Join Date: Jul 2010
Location: Argentina
Old 05-30-2012 , 14:36   DeathMatch Mode Vote [v1.0]
Reply With Quote #1

DeathMatch mode vote
  • Current version: 1.0
  • Last update: May 30, 2012

Description:
  • It makes a vote after plugin load to choose the deathmatch's type.
  • There are just two types; Only HeadShot & Normal.

Cvars:
  • dm_vote_time <time in seconds> [Vote duration time]
  • dm_block_knife_dmg <1|0> [Blocks the knife damage]
  • dm_voteinit_time <time in seconds> [The time taken to start the vote]

Notes:
  • This plugin was thought for DeathMatch's mode, but could be used in any other mode you want.

Credits:
For this & this.
Original idea.


Changelog:
  • 1.0: Initial release

Screenshots:

Spoiler
Attached Files
File Type: txt dm_vote.txt (976 Bytes, 642 views)
File Type: zip dm_vote_resources.zip (81.0 KB, 421 views)
File Type: sma Get Plugin or Get Source (dm_mode_vote.sma - 1505 views - 6.0 KB)
__________________

Last edited by Neeeeeeeeeel.-; 05-31-2012 at 14:17.
Neeeeeeeeeel.- is offline
Send a message via Skype™ to Neeeeeeeeeel.-
kramesa
Veteran Member
Join Date: Feb 2011
Location: Brazil
Old 05-30-2012 , 15:17   Re: DeathMatch Mode Vote [v1.0]
Reply With Quote #2

GJ
kramesa is offline
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 05-30-2012 , 15:18   Re: DeathMatch Mode Vote [v1.0]
Reply With Quote #3

Nice plugin
__________________
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 05-30-2012 , 15:27   Re: DeathMatch Mode Vote [v1.0]
Reply With Quote #4

PHP Code:
if( item != && item != //bugfix
        
item == 0
You fixed nothing here.
__________________
xPaw is offline
Neeeeeeeeeel.-
Some Guy Yellin'
Join Date: Jul 2010
Location: Argentina
Old 05-30-2012 , 15:35   Re: DeathMatch Mode Vote [v1.0]
Reply With Quote #5

Quote:
Originally Posted by xPaw View Post
PHP Code:
if( item != && item != //bugfix
        
item == 0
You fixed nothing here.
While the menu is open, if I choose option 5 for example. Item will be 4, won't it?
__________________
Neeeeeeeeeel.- is offline
Send a message via Skype™ to Neeeeeeeeeel.-
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 05-30-2012 , 15:36   Re: DeathMatch Mode Vote [v1.0]
Reply With Quote #6

Quote:
Originally Posted by Neeeeeeeeeel.- View Post
While the menu is open, if I choose option 5 for example. Item will be 4, won't it?
Yes, but that code xPaw posted fixes nothing.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Lolz0r
Veteran Member
Join Date: Nov 2010
Location: Balgaria
Old 05-30-2012 , 15:41   Re: DeathMatch Mode Vote [v1.0]
Reply With Quote #7

Yea, nice idea!
Lolz0r is offline
Neeeeeeeeeel.-
Some Guy Yellin'
Join Date: Jul 2010
Location: Argentina
Old 05-30-2012 , 16:08   Re: DeathMatch Mode Vote [v1.0]
Reply With Quote #8

Quote:
Originally Posted by Exolent[jNr] View Post
Yes, but that code xPaw posted fixes nothing.
Why not? Can you explain me please?

What I mean is that if item is higher than '1' I will get index out of bounds...

And...

PHP Code:
if( item )
    
item 0
It is better xD
__________________

Last edited by Neeeeeeeeeel.-; 05-30-2012 at 16:09.
Neeeeeeeeeel.- is offline
Send a message via Skype™ to Neeeeeeeeeel.-
rak
Veteran Member
Join Date: Oct 2011
Location: banned country
Old 05-30-2012 , 16:14   Re: DeathMatch Mode Vote [v1.0]
Reply With Quote #9

GJ sweetie
__________________

www.amxmodx-es.com

Steam: Luchokoldo
rak is offline
Send a message via MSN to rak Send a message via Skype™ to rak
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 05-30-2012 , 16:51   Re: DeathMatch Mode Vote [v1.0]
Reply With Quote #10

Quote:
Originally Posted by Neeeeeeeeeel.- View Post
Code:
if( item > 1 )
    item = 0;
It is better xD
Quote:
Originally Posted by xPaw View Post
Code:
if( item != 0 && item != 1 ) //bugfix
        item == 0;
Do you see what you fixed?
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Reply



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 21:33.


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