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

Buy a Bomb v2.0 (UPDATED)


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   General Purpose        Approver:   Hawk552 (427)
X-Script
BANNED
Join Date: Jul 2007
Location: (#504434)
Old 08-16-2007 , 13:40   Buy a Bomb v2.0 (UPDATED)
Reply With Quote #1

Buy a Bomb(v2.0)
VERSION 2.0 TESTED AND WORKS
============================================= ============================================= =
Version 1.5:

.:Information:.
Allows T's only to buy a bomb with a simple chat command, when you buy the bomb you will glow and have 600 gravity instead of 800. Creates a red glow around the user who buys the bomb. The glowing stops when the user dies, untill he buys another bomb.



.:Commands/Cvars:.
(CHAT) say /buybomb - Makes the client purchase the bomb (T Only)
(CHAT) say_team /buybomb - Makes the client purchase the bomb (T Only)
(CHAT) say /bb - Makes the client purchase the bomb (T Only)
(CHAT) say_team /bb - Makes the client purchase the bomb (T Only)
(CVAR) amx_bombcost - Controls the cost of the bomb (Default: $1100)
(CVAR) amx_bomb_buy - Toggles the plugin on and off (Default: 1)
(CVAR) amx_bomb_buyzone - Controls whether the T has to be in the buyzone. (Default: 0)



.:Modules:.
cstrike
fun

.:Credits:.
Toaster v2.1 - Testing Purposes
Yamikaituo - Suggestions

.:Notices:.
When a client enters the server 10 seconds after he chose a team and class he will be displayed a message telling him how to work this plugin. When a client has bought the bomb they will glow untill the round is over. When you buy the bomb you will glow a certain color, this is so the CT's know who to kill first. The gravity is just there for a slight avantage for the T's. Multiple bombs can be planted by the same or different user at the same time, at any bombsite.

.:Approvers Note:.
There is another plugin like this but it's old and is no longer updated / supported by it's author. My plugin has different features from that one also. Also, alot more controlable for the admins, more contralability will be added in version 2.0!


.:Changelog:.
Version 1.0:
initial release

Version 1.5:
Added 600 gravity for T's that buy the bomb.
Added a red glow for T's that buy the bomb.
Added "buyzone" CVAR to decide if you need to be in the buyzone.
Cleaned up the code a little bit, a tad more white-spaces.

Version 2.0:
Added four new ways to buy the bomb
Changed the glow color slighty
Fixed "buyzone" CVAR to something better
Added more coding and fixed the code
Pending more features

============================================= ============================================= =
Version 2.0:

.:Information:.
Tired of never getting the bomb when you want to get the bomb? Finally want to trick those CT's in whos got the bomb? Well wakeup because Version 2.0 of Buy a Bomb has arrived! Major coding changes have been made, new features, code cleanup and more! We've added new ways to buy the bomb that will make it alot easier and faster and the CT's will never know what hit them. When you buy the bomb you will be given 600 gravity and will glow red untill you die, or you drop the bomb.

.:Commands/Cvars:.
(CHAT) say /buybomb - Makes the client purchase the bomb (T Only)
(CHAT) say_team /buybomb - Makes the client purchase the bomb (T Only)
(CHAT) say /bb - Makes the client purchase the bomb (T Only)
(CHAT) say_team /bb - Makes the client purchase the bomb (T Only)
(CVAR) amx_bombcost - Controls the cost of the bomb (Default: $1100)
(CVAR) amx_bomb_buy - Toggles the plugin on and off (Default: 1)
(CVAR) amx_bomb_buyzone - Controls whether the T has to be in the buyzone. (Default: 0)
(CONSOLE) buybomb - Makes the client purchase the bomb in console (T Only)
(CONSOLE) bb - Makes the client purchase the bomb in console (T Only)

.:Console Tips:
We've made a much faster way of buying the bomb. You can now bind a key to buy the bomb instead of having to type it out! You can do it one of two ways:
bind f "buybomb" - Everytime you press 'f' you will buy the bomb.
bind o "bb" - Everytime you press 'o' you will buy the bomb.
You can change the key to whatever you'd like too and whatever suits your needs the best.

.:Modules:.
cstrike
fun

.:Credits:.
Lee - Coding Help / Code Cleanup (Major Help)
Konkelikonk - Suggestion / Feedback

.:Notices:.
Version 2.0 creates a more fun and easier gameplay when using this plugin. It challenges the CT's and keeps them on their toes, it also gives the T's a break from whining and complaining about "Oh, I don't have the bomb!" or "Give me the bomb now!". The default CVAR's were switched over to Version 2.0 so it means they are still the same but you can always change them. Also notice i'm leaving version 1.5 open to the public incase you don't like version 2.0. So now you can choose between version 1.5 or 2.0 to use on your server. AmxModX user Lee was a big part in helping me with Version 2.0, i'm not fully done with 2.0 i'm going to add a little suprise for you guys!
Attached Files
File Type: sma Get Plugin or Get Source (buy_a_bomb.sma - 6014 views - 2.5 KB)
File Type: sma Get Plugin or Get Source (buy_a_bomb1.sma - 3788 views - 2.7 KB)

Last edited by X-Script; 08-18-2007 at 16:52.
X-Script is offline
X-Script
BANNED
Join Date: Jul 2007
Location: (#504434)
Old 08-16-2007 , 13:46   Re: Buy a Bomb(v1.0)
Reply With Quote #2

Woops, I just did a third search and I see it's already been made. Don't unapprove this yet, let me go add some features and make changes.
X-Script is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 08-16-2007 , 14:12   Re: Buy a Bomb(v1.0)
Reply With Quote #3

Are you still able to plant the bomb? I thought that you had to use cs_set_user_plant before they could plant the bomb if you give them it manually
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
X-Script
BANNED
Join Date: Jul 2007
Location: (#504434)
Old 08-16-2007 , 14:14   Re: Buy a Bomb(v1.0)
Reply With Quote #4

I tested it and it works without that line of coding. I typed it in and went to the bombsite and planted it sucessfuly.

If you stop and think about it, this isn't really the same as the other one thats out.
This plugin you don't have to be in the buyzone to buy a bomb.
The other one you have to be in a buyzone.

This plugin will have very few bugs (and if bugs are found they'll be fixed)
The other one the author doesn't support it anymore and it's buggy.
X-Script is offline
X-Script
BANNED
Join Date: Jul 2007
Location: (#504434)
Old 08-16-2007 , 16:47   Re: Buy a Bomb(v1.0)
Reply With Quote #5

Next Version Release - 1.5 [Will be released tonight]
Will include more stuff.
X-Script is offline
Crusher918
Senior Member
Join Date: Feb 2007
Location: New York
Old 08-16-2007 , 19:30   Re: Buy a Bomb(v1.0)
Reply With Quote #6

suggestion: i think u should let them buy the bomb on buyzone cuz ppl will glitch it by going to bombsite first then buying it just to save money
__________________
My Plugins
Newest plugin: semiclip , amx_bankrupt
Crusher918 is offline
X-Script
BANNED
Join Date: Jul 2007
Location: (#504434)
Old 08-16-2007 , 20:45   Re: Buy a Bomb(v1.0)
Reply With Quote #7

Quote:
Originally Posted by Crusher918 View Post
suggestion: i think u should let them buy the bomb on buyzone cuz ppl will glitch it by going to bombsite first then buying it just to save money
I can't really add that because that would make it almost the exact same as the other plugin.

Last edited by X-Script; 08-16-2007 at 20:53.
X-Script is offline
kp_uparrow
Penalized Member
Join Date: Jun 2006
Location: 192.168.0.1
Old 08-16-2007 , 20:53   Re: Buy a Bomb(v1.0)
Reply With Quote #8

well the 2 ideas conflict
__________________
I USED A SECOND ACCOUNT TO DO MORE KARMA UPS AND DOWNS UNTIL GREENTRYST CAUGHT ME
kp_uparrow is offline
X-Script
BANNED
Join Date: Jul 2007
Location: (#504434)
Old 08-16-2007 , 20:55   Re: Buy a Bomb(v1.0)
Reply With Quote #9

Yeah I know, i'm going to need some suggestions for this because I did two searches before I started scripting this plugin and I didn't find anything. On the third search AFTER I finished the plugin I found another one like this.

I'm taking suggestions right now!
X-Script is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 08-16-2007 , 21:09   Re: Buy a Bomb(v1.0)
Reply With Quote #10

Maybe a cvar to allow purchasing in the buyzone or anywheres?
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
Old 08-16-2007, 21:10
X-Script
This message has been deleted by X-Script.
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 12:20.


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