Raised This Month: $12 Target: $400
 3% 

[27/06/10] Block Slash


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Admin Commands        Approver:   Arkshine (91)
grimvh2
Veteran Member
Join Date: Nov 2007
Location: Fishdot Nation
Old 06-27-2010 , 08:00   [27/06/10] Block Slash
Reply With Quote #1

Block Slash


Credits:

- Routine: Testing
- Kureno
- ot_207: Idea's
- Xalus: Testing


Description:

This plugin is ment for knife servers. Using a command u can block players from slashing ( +attack ). Why ? Some servers (players) think slashing on acer is lame, people that are new to knife don't know that.


Commands:

amx_blockslash <playername> <rounds>

note: 0 rounds = the whole map, this also works on servers using respawn.
( reconnecting does'nt help to remove the blockslash )

amx_allowslash <playername>

say /voteslasher


Cvars:

Code:
"bl_allowvote", Default: "1"  En/disables the command
"bl_menudelay", Default: "10" Time players have to chose
"bl_votedelay", Default: "180" Time players have to wait to use the command again
"bl_voterounds", Default: "5" Rounds players will not be able to slash after the vote succeeded
Changelog:

Code:
Version 3.2: Changed coding parts.
Version 3.1: Changed minor things.
Version 3.0: Added votemenu
Version 2.0: Added @all, @ct, @t options + little bug fixed.
Version 1.0: Initial Release
ToDo List:

Add a votecommand for regular players.
Maybe add colorchat ( kinda buggy here last times :s )


Attached Files
File Type: sma Get Plugin or Get Source (blockslash.sma - 2342 views - 9.0 KB)
__________________
I am out of order!

Last edited by grimvh2; 11-01-2010 at 17:10.
grimvh2 is offline
KadiR
Unnecessary Member
Join Date: Aug 2008
Location: Zürich / Switzerland
Old 06-27-2010 , 08:02   Re: [27/06/10] Block Slash
Reply With Quote #2

Oh cool, good job!
KadiR is offline
Kureno
Junior Member
Join Date: Nov 2009
Old 06-27-2010 , 08:21   Re: [27/06/10] Block Slash
Reply With Quote #3

Great Job, Grim!
__________________
Coding WebApps (PHP/MYSQL) for plugins
(StandAlone or as plugin for e107 CMS)
PM me


Kureno is offline
ot_207
Veteran Member
Join Date: Jan 2008
Location: Romania The Love Country
Old 06-27-2010 , 08:22   Re: [27/06/10] Block Slash
Reply With Quote #4

Gj
Adding a cvar to block for all players or make the command support @ALL,@T,@CT would be nice and also support for userid not just playername.
And also change modification and category.
__________________
My approved plug-ins | Good for newbies! | Problems?

Back, will come around when I have time.
ot_207 is offline
grimvh2
Veteran Member
Join Date: Nov 2007
Location: Fishdot Nation
Old 06-27-2010 , 08:32   Re: [27/06/10] Block Slash
Reply With Quote #5

Quote:
Originally Posted by ot_207 View Post
Gj
Adding a cvar to block for all players or make the command support @ALL,@T,@CT would be nice and also support for userid not just playername.
And also change modification and category.
Yes was thinking of the same. Category is admin commands?
__________________
I am out of order!
grimvh2 is offline
ot_207
Veteran Member
Join Date: Jan 2008
Location: Romania The Love Country
Old 06-27-2010 , 08:33   Re: [27/06/10] Block Slash
Reply With Quote #6

Oh, sorry just modification.
Isn't this only for cs?
__________________
My approved plug-ins | Good for newbies! | Problems?

Back, will come around when I have time.

Last edited by ot_207; 06-27-2010 at 08:44.
ot_207 is offline
grimvh2
Veteran Member
Join Date: Nov 2007
Location: Fishdot Nation
Old 06-27-2010 , 09:03   Re: [27/06/10] Block Slash
Reply With Quote #7

Its using hamsandwich, isn't that for all games? (or most)
__________________
I am out of order!
grimvh2 is offline
minimiller
Veteran Member
Join Date: Aug 2007
Location: United Kingdom
Old 06-27-2010 , 09:10   Re: [27/06/10] Block Slash
Reply With Quote #8

nice idea

maybe a cvar for what you can/cant use?
0 - slash and/or stab
1 - slash only
2 - stab only
3 - no knife allaowed (pretty gay, but somebody might use it)
__________________
minimiller is offline
Send a message via MSN to minimiller
grimvh2
Veteran Member
Join Date: Nov 2007
Location: Fishdot Nation
Old 06-27-2010 , 09:14   Re: [27/06/10] Block Slash
Reply With Quote #9

Quote:
Originally Posted by minimiller View Post
nice idea

maybe a cvar for what you can/cant use?
0 - slash and/or stab
1 - slash only
2 - stab only
3 - no knife allaowed (pretty gay, but somebody might use it)
Well ive tought of that, but it does'nt sounds logic with the idea why I made the plugin. This should stop laming and I don't see how stab can be lame.
I might do it but for now I will make other updates.

Version 2.0 Released.
__________________
I am out of order!
grimvh2 is offline
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 06-27-2010 , 09:42   Re: [27/06/10] Block Slash
Reply With Quote #10

Quote:
Originally Posted by grimvh2 View Post
Its using hamsandwich, isn't that for all games? (or most)
You are hooking weapon_knife wich is cstrike specific

EDIT:
- You could exclude bots from the loop (look params for get_players)
- Create variable id and store [I]players[i] into it
__________________

Last edited by xPaw; 06-27-2010 at 13:48.
xPaw 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 04:21.


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