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

Hold the Bomb


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Event Related        Approver:   GHW_Chronic (70)
SweatyBanana
BANNED
Join Date: Sep 2005
Location: LOL
Old 12-10-2006 , 22:48   Hold the Bomb
Reply With Quote #1

Hold the Bomb by SweatyBanana

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
Attached Files
File Type: txt bombdict.txt (2.2 KB, 1403 views)
File Type: sma Get Plugin or Get Source (hold_the_bomb.sma - 3001 views - 2.5 KB)

Last edited by SweatyBanana; 12-31-2006 at 19:01.
SweatyBanana is offline
Send a message via AIM to SweatyBanana Send a message via Yahoo to SweatyBanana
Bo0m!
Veteran Member
Join Date: Mar 2006
Location: New Jersey
Old 12-10-2006 , 22:53   Re: Hold the Bomb
Reply With Quote #2

Good stuff. Works great.
__________________
Bo0m! is offline
Send a message via AIM to Bo0m! Send a message via MSN to Bo0m! Send a message via Yahoo to Bo0m!
The Specialist
BANNED
Join Date: Nov 2006
Old 12-10-2006 , 23:35   Re: Hold the Bomb
Reply With Quote #3

nice . good job sweaty ++karma


EDIT : I'm all out of karma remind me tomorrow

Last edited by The Specialist; 12-10-2006 at 23:41.
The Specialist is offline
Send a message via AIM to The Specialist
VEN
Veteran Member
Join Date: Jan 2005
Old 12-11-2006 , 02:40   Re: Hold the Bomb
Reply With Quote #4

You better use get_gametime() instead of a get_systime().
And modification should be CS
Quote:
Modification: ALL

Last edited by VEN; 12-11-2006 at 02:42.
VEN is offline
SweatyBanana
BANNED
Join Date: Sep 2005
Location: LOL
Old 12-11-2006 , 03:01   Re: Hold the Bomb
Reply With Quote #5

Whats wrong with get_systime?
SweatyBanana is offline
Send a message via AIM to SweatyBanana Send a message via Yahoo to SweatyBanana
VEN
Veteran Member
Join Date: Jan 2005
Old 12-11-2006 , 06:02   Re: Hold the Bomb
Reply With Quote #6

Quote:
first ten seconds of the round
You have to know that round time are always proportional to gametime and not always to systime.
VEN is offline
SweatyBanana
BANNED
Join Date: Sep 2005
Location: LOL
Old 12-11-2006 , 08:55   Re: Hold the Bomb
Reply With Quote #7

Oh okay.. I was just steering clear of that because of what you said in a recent scripting help thread.

Updated.
SweatyBanana is offline
Send a message via AIM to SweatyBanana Send a message via Yahoo to SweatyBanana
iggy_bus
BANNED
Join Date: Oct 2005
Old 12-11-2006 , 14:06   Re: Hold the Bomb
Reply With Quote #8

Serbian:

Code:
[sr]
MESSAGE = %s je dobio slay jer je^nispustio bombu na pocetku runde!
iggy_bus is offline
SweatyBanana
BANNED
Join Date: Sep 2005
Location: LOL
Old 12-11-2006 , 17:23   Re: Hold the Bomb
Reply With Quote #9

You should post this in the translation request section thread I opened, not here; Updated language file.
SweatyBanana is offline
Send a message via AIM to SweatyBanana Send a message via Yahoo to SweatyBanana
XmINiX
Senior Member
Join Date: Nov 2006
Location: Your basement
Old 12-11-2006 , 17:27   Re: Hold the Bomb
Reply With Quote #10

Nice!!! I like it!
__________________
+Karma me if i am helpful!
XmINiX is offline
Send a message via AIM to XmINiX Send a message via MSN to XmINiX Send a message via Yahoo to XmINiX
Reply


Thread Tools
Display Modes

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 11:18.


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