Raised This Month: $ Target: $400
 0% 

Buyc4


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Fun Stuff       
Cheap_Suit
Veteran Member
Join Date: May 2004
Old 08-03-2004 , 20:17   Buyc4
Reply With Quote #1

This is my second plugin

Based on AssKicR Buyknife plugin comes... buyc4
thanks for Burnzy for the help

*FIXED*
-buyzone
-bombplanting problems
-added : only works in de_ maps
Code:
/* AMX Mod script. 
* 
* Buyc4 1.4 by Cheap_Suit
* 
* Description: 
*  This plugin makes you buy a c4
* 
* CVARs: 
*  buy_c4time - take care of buytime  
*  buy_c4buytime - sets buytime
*  buy_c4zone - take care of buyzone  
*  buy_c4 - buys your ever own c4
*  buy_c4cost - sets the cost of the c4
*  
*
* Client Command
*  buyc4 - Buys a c4
* 
*/
__________________
HDD fried, failed to backup files. Sorry folks, just don't have free time anymore. This is goodbye.
Cheap_Suit is offline
Burnzy
Veteran Member
Join Date: Apr 2004
Old 08-03-2004 , 20:18  
Reply With Quote #2

ur welcome
__________________
Burnzy is offline
Send a message via AIM to Burnzy
Dicope
Member
Join Date: Aug 2004
Old 08-06-2004 , 14:08  
Reply With Quote #3

user
cs_set_user_plant
to allow players to plant the bomb
Dicope is offline
martinrb
Junior Member
Join Date: Jun 2004
Old 08-06-2004 , 14:21  
Reply With Quote #4

does this allow players to plant directly after buying?
i mean when i first tested the plugin u had to drop the bomb and pick it up again in order to plant the c4.
martinrb is offline
Dicope
Member
Join Date: Aug 2004
Old 08-06-2004 , 16:33  
Reply With Quote #5

Quote:
Originally Posted by http://www.amxmodx.org/funcwiki.php?go=func&id=198
cs_set_user_plant - Sets whether a player can plant the bomb.

Syntax:
cs_set_user_plant ( index, [ plant, showbombicon ] )
Type:
Native
Notes:
This will only work if the player is at a bomb site and has the bomb. You should use this if you give a player weapon_c4 manually.

If showbombicon is 1, the green c4 icon will be shown on the user's HUD.
Dicope is offline
martinrb
Junior Member
Join Date: Jun 2004
Old 08-06-2004 , 18:55  
Reply With Quote #6

i already rewrote my plugin to:

line 151:
Code:
	}else{
		C4Buy(id,cost)
		cs_set_user_plant(id,1,1)
		}
	return PLUGIN_CONTINUE
martinrb is offline
Cheap_Suit
Veteran Member
Join Date: May 2004
Old 08-07-2004 , 00:22  
Reply With Quote #7

ill have to fix that and the buyzone thingy too
__________________
HDD fried, failed to backup files. Sorry folks, just don't have free time anymore. This is goodbye.
Cheap_Suit is offline
Akali_Singh
Junior Member
Join Date: May 2004
Location: New York
Old 08-12-2004 , 13:16  
Reply With Quote #8

Hi

was wondering if this plugin was updated
by that i mean fixed the buy zone thingy
and the rest

l8r
Akali_Singh is offline
Cheap_Suit
Veteran Member
Join Date: May 2004
Old 08-13-2004 , 18:35  
Reply With Quote #9

its fix
__________________
HDD fried, failed to backup files. Sorry folks, just don't have free time anymore. This is goodbye.
Cheap_Suit is offline
HellKatzX
Junior Member
Join Date: Dec 2004
Location: IA, USA
Old 03-03-2005 , 10:44  
Reply With Quote #10

How could I make this so only admins can buy/plant c4s. Could this be altered so you don't even have to buy the c4s you can just plant as many as you want? Like the amxmod version.
__________________
ESpX.Net
HellKatzX is offline
Send a message via AIM to HellKatzX
Reply



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 10:20.


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