View Single Post
Author Message
bobbobagan
SourceMod Donor
Join Date: May 2007
Location: New Zealand
Old 10-27-2009 , 04:36   Noblock players and grenades
Reply With Quote #1

Player and Grenade Noblock

SUMMARY
Originally by Tony G. The original plugin used DukeHacks which isn't really supported anymore.

This plugin noblocks players and grenades so players can not be blocked by team mates/enemies grenades. Useful for deathrun servers so players can not be killed by TKers trying to jump over traps.

Credits:
Someone78 - Showed me and my mate how to properly code this for SDK Hooks
Tony G. - Original thread: http://forums.alliedmods.net/showthread.php?p=746250
Altex and his NoBlock plugin, some code is borrowed from it.

Requirements:
SourceMod v1.2.X or greater

Cvars:
sm_grenplayer_noblock_version = 2.1 (can not be changed)

// Enables/Disables noblock on grenades (def. 1)
sm_noblock_grenades

// Enables/Disables noblock on players (def. 1)
sm_noblock_players

// Enables/Disables the !block command (def. 1)
sm_noblock_allow_block

// How long a player should be blocked for (def. 20)
sm_noblock_allow_block_time

// Enables/Disables chat messages (def. 1)
sm_noblock_notify

Installation:
- noblock.smx goes into /addons/sourcemod/plugins
- noblock.phrases.txt into /addons/sourcemod/translations

Changelog:
1.1:
- Initial release. Changed requirements from Dukehacks to SDK Hooks.
1.2:
- Added checking to make sure the game is Counter-Strike: Source only
- Added !block (Thanks Altex)
- Added a command to enable/disable blocking on players
- Added a command to enable/disable blocking on grenades
2.0:
- Complete rewrite
- No longer requires SDKHooks (should I mention the fact that it never actually did? )
2.1:
- Fixed a possible issue with translations
- Added sm_noblock_notify to enable or disable chat messages

A staggering 11574 downloads for v2.0!
Attached Files
File Type: txt noblock.phrases.txt (406 Bytes, 9358 views)
File Type: sp Get Plugin or Get Source (noblock.sp - 5903 views - 4.9 KB)
__________________

Last edited by bobbobagan; 12-15-2014 at 01:23.
bobbobagan is offline
Send a message via Skype™ to bobbobagan