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

Hostage Protection[ V 1.8 ]


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Plugin Info:     Modification:   Counter-Strike        Category:   Gameplay        Approver:   Arkshine (91)
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 06-27-2014 , 09:12   Hostage Protection[ V 1.8 ]
Reply With Quote #1


Hostage Protection 1.8
Release: 27.06.2014 | Last Update: 20.02.2015

Table of Contents

Description top

This plugin has a simple purpose, to stop players from killing hostages. It will work only in hostage maps. You can set punishments ( with cvars ) for players that kill hostages. It will also block any damage on a hostage, this mean he won't die but you will think more next time when you want to kill one.

Feature:
  • pause plugin when you don't run a hostage map
  • block damage, not just punish the player
  • more cvars to customize it
  • you can punish a player in many ways, you decide how

Installation top

To install the plugin:
  1. Download the resources from this post.
  2. Put hostage_protection.amxx in addons/amxmodx/plugins
  3. Open addons/amxmodx/configs/plugins.ini and add at the end of this file hostage_protection.amxx
  4. You can put the sma file into addons/amxmodx/sources but this is not mandatory.
  5. Put hostage_protection.txt in addons/amxmodx/data/lang
  6. Restart the server/change map.
Cvars top

This cvars allow you to turn on/off most of the features and to control the way in which the plugin works.
  • hp_punishment:
    • Allow you to decide in which way a player will be punished.
      To enabled damage on hostages you have to disable this plugin, read the cvar above.
    • 0 - just block damage | 1 - slap with x damage | 2 - slay | 3 - ban | 4 - random stuffs

    • Random stuffs: he lose 50% of his health/money or he lose all weapons.
  • hp_slap_value | hp_ban_time:
    • You can decide slap value/ban time
    • Slap: If it's 100 player will die | If it's 0 it will have no effect
    • Ban:Time that a player remain banned | 0 mean permanent
  • hp_showblood:
    • Determines if the blood will be show when attacking a hostage.
    • 1 - show blood | 0 don't show blood.
  • hp_blockteam:
    • Determines what team can't attack hostages
    • t - tero | c - ct | b - both
ChangeLog top
  • V 0.1:
    • Initial release
  • V 0.2:
    • Removed an useless variable.
      Added a new option to the punishment cvar: no punishment ( 0 value )
  • V 0.3:
    • Removed display cvar+message
    • Plugin is now working on cs_assault too
    • Block he grenade damage.
    • Remove constant for entities
  • V 0.4:
    • Arranged the code
    • Little optimizations
  • V 0.5:
    • Remove hp_status cvar
    • Added some check in CHostage::TakeDamage
  • V 0.6:
    • Optimized the code and fixed some potential bugs.
Downloads top
  • 0.1 version: 18 downloads
  • 0.2 version: 37 downloads
  • 0.3 version: unknow downloads
  • 0.4 version: 69 downloads
  • 0.5 version: 24 downloads
  • 0.7 version: 180 downloads
Attached Files
File Type: sma Get Plugin or Get Source (hostage_protection.sma - 5103 views - 5.5 KB)
File Type: txt hostage_protection.txt (2.7 KB, 2820 views)

Last edited by HamletEagle; 08-31-2017 at 11:48.
HamletEagle is offline
 



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 10:12.


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