AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   Buy a Bomb v2.0 (UPDATED) (https://forums.alliedmods.net/showthread.php?t=59563)

X-Script 08-16-2007 13:40

Buy a Bomb v2.0 (UPDATED)
 
2 Attachment(s)
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!

X-Script 08-16-2007 13:46

Re: Buy a Bomb(v1.0)
 
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.

YamiKaitou 08-16-2007 14:12

Re: Buy a Bomb(v1.0)
 
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

X-Script 08-16-2007 14:14

Re: Buy a Bomb(v1.0)
 
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 08-16-2007 16:47

Re: Buy a Bomb(v1.0)
 
Next Version Release - 1.5 [Will be released tonight]
Will include more stuff.

Crusher918 08-16-2007 19:30

Re: Buy a Bomb(v1.0)
 
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

X-Script 08-16-2007 20:45

Re: Buy a Bomb(v1.0)
 
Quote:

Originally Posted by Crusher918 (Post 519192)
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.

kp_uparrow 08-16-2007 20:53

Re: Buy a Bomb(v1.0)
 
well the 2 ideas conflict

X-Script 08-16-2007 20:55

Re: Buy a Bomb(v1.0)
 
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!

YamiKaitou 08-16-2007 21:09

Re: Buy a Bomb(v1.0)
 
Maybe a cvar to allow purchasing in the buyzone or anywheres?


All times are GMT -4. The time now is 10:32.

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