AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   [27/06/10] Block Slash (https://forums.alliedmods.net/showthread.php?t=130763)

grimvh2 06-27-2010 08:00

[27/06/10] Block Slash
 
1 Attachment(s)
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 )



KadiR 06-27-2010 08:02

Re: [27/06/10] Block Slash
 
Oh cool, good job!

Kureno 06-27-2010 08:21

Re: [27/06/10] Block Slash
 
Great Job, Grim!

ot_207 06-27-2010 08:22

Re: [27/06/10] Block Slash
 
Gj :wink:
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.

grimvh2 06-27-2010 08:32

Re: [27/06/10] Block Slash
 
Quote:

Originally Posted by ot_207 (Post 1221372)
Gj :wink:
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?

ot_207 06-27-2010 08:33

Re: [27/06/10] Block Slash
 
Oh, sorry just modification. :mrgreen:
Isn't this only for cs?

grimvh2 06-27-2010 09:03

Re: [27/06/10] Block Slash
 
Its using hamsandwich, isn't that for all games? (or most)

minimiller 06-27-2010 09:10

Re: [27/06/10] Block Slash
 
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)

grimvh2 06-27-2010 09:14

Re: [27/06/10] Block Slash
 
Quote:

Originally Posted by minimiller (Post 1221415)
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.

xPaw 06-27-2010 09:42

Re: [27/06/10] Block Slash
 
Quote:

Originally Posted by grimvh2 (Post 1221412)
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


All times are GMT -4. The time now is 23:28.

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