Hold the Bomb

Post Reply
greenie
Full Member
Full Member
Posts: 1815
Joined: Sun Nov 21, 2021 4:55 pm
Jucator SA:MP ?: Nu
Nick:: greenie
Jucator CS ?: Nu

Hold the Bomb

Post by greenie »

Description
This plugin is meant to prevent people from dropping the bomb in the beginning of the round. If the player that spawned with the bomb drops the bomb within the first ten seconds of the round, the user will be punished and a HUD message will be displayed anouncing the punishment to everyone. There is an adjustable cvar below to change the punishments and settings for punishments.

CVARS

bomb_time
Float number of seconds that the user that spawned with the bomb can not drop the bomb without being punished. (ex 10.0)
bomb_status
0: off
1: on

bomb_punish
Setting for which punishment to use.

1: kill the user
2: slap the user
3: bury the user
bomb_slaphealth
Amount of health the user will be slapped for droping the bomb.
bomb_burytime
A float number to define the amount of seconds the user will be buried for. (DEFAULT 10.0)
Modules
Fakemeta is required to check if the map you are on is a map with a bombsite in it. If you wish to have a version that does not require fakemeta, I will make one for you.

Fun is required to set the users origin while burying and unburying.

Credits
VEN for his bomb scripting tutorial
Bo0m! for providing a test server
All of the translators

Installation
Place hold_the_bomb.amxx in addons/amxmodx/plugins/ folder
Place bombdict.txt in addons/amxmodx/data/lang folder
Make sure fakemeta is enabled.
Make sure fun is enabled.

Changelog

0.1 - Base plugin
0.2 - Changed to get_gametime()
0.3 - Updated with multiple punishments
0.4 - Fixed some bugs.. They were juicy.
0.5 - Due to a Beta Testing report, someone noticed that my plugin created a secondary lang entry for SLAY.. Fixed as of this version

plugin
source
Post Reply

Return to “Event Related”