AMXX Dust2 Yard Kill

No Video Preview

This product doesn't have a video preview yet.

Counter-Strike 1.6 Plugins

AMXX Dust2 Yard Kill

Released

Oct 21, 2025

Downloads

0

Tags

Price

FREE

One-time purchase

Login Required

Please log in to access payment options and purchase this product.

Login Now

Product Description

๐Ÿšซ Dust2 Yard Hole Kill Plugin

๐Ÿ“‹ Description

A Counter-Strike 1.6 plugin that automatically kills players if they stay too long in a specific zone on the de_dust2 map (the yard hole). The plugin works only on de_dust2 and automatically disables itself on other maps.

โœจ Features

๐ŸŽฏ Core Functionality:

  1. Automatic zone detection - Checks player positions every second
  2. Warning timer - Counts seconds while player is in the restricted zone
  3. HUD messages - Displays visual warnings on screen
  4. Automatic elimination - Kills the player after time expires
  5. Timer reset - Automatically resets timer when leaving the zone

๐Ÿ“ Zone Coverage:

Restricted zone coordinates (Yard Hole):

  1. X: 1296.0 to 1583.0
  2. Y: 48.0 to 753.0 (with -40.0 extension)
  3. Z: -144.0 to 36.0 (with -20.0 extension)

โš™๏ธ Configuration

The plugin automatically creates a configuration file yard_hole.cfg in the configs/ folder.

๐Ÿ”ง CVARs (Console Variables):

CVAR Default Value Description

yard_hole_time10Seconds before killing the playeryard_hole_msg_inside"You are trapped in the yard hole! Leave within %d seconds or you will be eliminated!"Message when entering the zoneyard_hole_msg_death"You stayed too long! You are now dead."Message when killedyard_hole_msg_exit"You have left the yard hole. Timer reset."Message when leaving the zone

๐Ÿ“ Configuration Example:

// Time before killing (in seconds)yard_hole_time "10"
// Messages (you can customize them)yard_hole_msg_inside "You are trapped in the yard hole! Leave within %d seconds or you will be eliminated!"yard_hole_msg_death "You stayed too long! You are now dead."yard_hole_msg_exit "You have left the yard hole. Timer reset."

๐Ÿ“ฆ Requirements

Dependencies:

  1. amxmodx - Core AMX Mod X module
  2. amxmisc - Miscellaneous functions
  3. engine - Engine functions for coordinate handling

System Requirements:

  1. AMX Mod X 1.8.2 or newer
  2. Counter-Strike 1.6 server
  3. Map: de_dust2

๐Ÿ”จ Installation

  1. Compilation:
amxxpc d2_yard_hole_kill.sma
  1. File Deployment:
  2. Copy d2_yard_hole_kill.amxx to addons/amxmodx/plugins/
  3. Add to addons/amxmodx/configs/plugins.ini:
d2_yard_hole_kill.amxx
  1. Restart:
  2. Restart the server or change map to de_dust2

๐ŸŽฎ How It Works

  1. Map Check: On startup, the plugin verifies if the map is de_dust2. If not, it automatically disables itself.
  2. Player Monitoring: Every second, the plugin checks the position of all alive players.
  3. Zone Detection: If a player enters the restricted zone (yard hole):
  4. Starts counting seconds
  5. Displays red HUD message with remaining time
  6. Kills the player when time expires
  7. Zone Exit: If the player leaves the zone before time expires:
  8. Displays green HUD message
  9. Resets the timer

๐ŸŽจ HUD Messages

๐Ÿ”ด Warning (Red):

  1. Position: Top center of the screen
  2. Color: Red (RGB: 255, 0, 0)
  3. Shows remaining seconds

๐ŸŸข Exit (Green):

  1. Position: Top center of the screen
  2. Color: Green (RGB: 0, 255, 0)
  3. Confirms zone exit

๐Ÿ› ๏ธ Technical Details

Functions:

  1. plugin_init() - Plugin initialization and map verification
  2. check_player_positions() - Checks player positions every second
  3. is_in_yard() - Determines if a player is in the restricted zone

Features:

  1. Uses CreateHudSyncObj() for synchronized HUD messages
  2. Automatically creates configuration file with AutoExecConfig()
  3. CVAR binding for dynamic configuration
  4. Every-second check via set_task() with "b" flag (repeating task)

๐Ÿ‘ค Author

illusion @ CraftVision

๐Ÿ“Œ Version

1.0

๐Ÿ“„ License

This plugin is part of the ILLUSION PLUGINS collection.

๐Ÿ› Known Issues

  1. Plugin only works on de_dust2
  2. Coordinates are fixed and cannot be changed without recompilation


Related Products

Special Offer
Use code BFRIDAY50 to get 50% OFF
Promo code copied!