Thread: C4 Management
View Single Post
Plugin Info:     Modification:          Category:          Approver:   Emp` (115)
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 12-12-2007 , 18:17   C4 Management
Reply With Quote #1

C4 Management




.: Description :.


This plugin allow to disable bomb planting, or allow to plant in 1 bombsite, according to CTs number.



.: Cvars :.

  • bm_minct < number >
    Required CTs number to allow bomb planting (def : 0)
  • bm_midct < number >
    Required CTs number to allow bomb planting in all bombsites (def : 4)
  • bm_roundstart_text < 0 / 1 / 2 >
    Set the type of message sent at round start.
    0:deactivated 1:prints in chat 2:colored hud messages
  • bm_planter_text < 0 / 1 >
    On 1, prints a centered text message to planter who try to plant at a disabled bombsite



.: Commands :.


bm_mark_bs <Bombsite Name> (flag ADMIN_CFG)
Mark a bombsite as the main bombsite of a map (you must stand on a bombsite in order to make this command to work)


.: Requirements :.


AMXX 1.8 or above
Modules : fakemeta , hamsandwich
File : addons/amxmodx/data/lang/c4management.txt (attachments)




.: Changelog :.
Code:
v0.2.7 (01 apr 2010)
- Replaced event StatusIcon with message hook for efficienty.

v0.2.6
- Prevent bombsite deactivation after the bomb has been planted.

v0.2.5 (15 dec 2009)
- Fixed BombDrop event was registered as a global event.

v0.2.4 (11 nov 2009)
- Added cvar for messages types

v0.2.3 (10 nov 2009)
- Enable all bombsites on plugin_pause

v0.2.2 (09 nov 2009)
- Added bomb drop detection to be sure to not send a StatusIcon to a Bomb Carrier that would have disconnect or dropped the bomb.

v0.2.1 (08 nov 2009)
- Now draw the bomb icon in orange when only 1 site is avaible, or hide it if no bombsite avaible at all.

v0.2.0 (06 nov 2009)
- Completly rewrote the plugin with a more efficient way to disable Bombsites
/!\ .ini file datas have completly changed, delete your old file and set again maps.
- Added hudmessages at roundstart so all players now where the bomb can be planted

v0.1.1
-bug fix (removed a test command...)


.: Credits :.


VEN for his bomb scripting tutorial

I have kept old code if somebody is curious
Attached Files
File Type: sma Get Plugin or Get Source (DONT_USE_c4_management_OLD.sma - 3297 views - 7.1 KB)
File Type: sma Get Plugin or Get Source (c4_management.sma - 4993 views - 12.5 KB)
File Type: txt c4management.txt (3.1 KB, 2379 views)
File Type: ini bombsites.ini (439 Bytes, 2747 views)
__________________
- tired and retired -

- my plugins -

Last edited by ConnorMcLeod; 05-29-2011 at 04:50. Reason: Added 2 languages
ConnorMcLeod is offline