Raised This Month: $32 Target: $400
 8% 

C4 Plant Money Bonus


Post New Thread Reply   
 
Thread Tools Display Modes
Tartooob
Senior Member
Join Date: May 2006
Old 01-09-2007 , 05:33   Re: C4 Plant Money Bonus
Reply With Quote #21

Quote:
Originally Posted by VEN View Post
That's exactly what i've said. Let's see:

You upgraded only the base package, but not cstrike package. That was your problem.
Sorry and thanks, I have updated the modules
Tartooob is offline
Maurice
Senior Member
Join Date: Nov 2006
Location: Netherlands
Old 01-30-2007 , 19:16   Re: C4 Plant Money Bonus
Reply With Quote #22

Small but realy nice plugin! I'm using the "no bomb score" from MistaGee and this money bonus for planting the bomb is a great way to motivate the people for planting the bomb. Actualy im searching for a plugin that gives the player who defused or let explode the bomb a amount of money, because this plugin comes verry close to that i want to ask if its posible with changing something in the code to reach this? that would be terrific!

* edit
Whoops, Sp4rt4n did provided this already with his bomb awards plugin.

Last edited by Maurice; 01-30-2007 at 19:48.
Maurice is offline
Locks
Senior Member
Join Date: Sep 2005
Old 01-30-2007 , 22:30   Re: C4 Plant Money Bonus
Reply With Quote #23

I'll post the code anyways, just in case if someone else wanted the same thing as you did, but without the hp bonus and all the other stuff in it.

Add a new pcvar variable at the top:
Code:
new PCvarDefuseBonus

Then in the plugin_init(), add:
Code:
    PCvarDefuseBonus = register_cvar("amx_defuse_bonus", "150")     // the defuse bonus could be changed

Add a new function:
Code:
public bomb_defused(id) {     new money = cs_get_user_money(id)     new bonus = get_pcvar_num(PCvarDefuseBonus)     cs_set_user_money(id, money + bonus) }

Compile, then you're all set.

Just note yourself that this cvar:
Code:
amx_defuse_bonus
could be changed to whatever you want the bonus to be.
Locks is offline
nokia1992
Member
Join Date: Nov 2006
Old 02-03-2007 , 20:23   Re: C4 Plant Money Bonus
Reply With Quote #24

GooD Plugin
nokia1992 is offline
vlada92
Junior Member
Join Date: Apr 2007
Old 04-19-2007 , 01:32   Re: C4 Plant Money Bonus
Reply With Quote #25

I need help finding a csx and cstrike module. I want this plugin to work
vlada92 is offline
Dejyo
New Member
Join Date: Apr 2007
Old 04-19-2007 , 12:29   Re: C4 Plant Money Bonus
Reply With Quote #26

How am i gonna write it in Plugins.ini?
Dejyo is offline
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 04-19-2007 , 13:15   Re: C4 Plant Money Bonus
Reply With Quote #27

amx_plant_bonus.amxx
__________________
Still...lovin' . Connor noob! Hello
Alka is offline
prcollin
New Member
Join Date: May 2007
Old 05-31-2007 , 13:01   Re: C4 Plant Money Bonus
Reply With Quote #28

where do i add this code so that i can get this mod to work. I am very new to all this and am trying to figure out how to work all these mods and script and stuff. I just ste up my own server using a pc at my house with very good parts ( I build computers) but know nothing about amxx scripting.
prcollin is offline
schmurgel1983
Veteran Member
Join Date: Aug 2006
Location: Germany
Old 11-27-2007 , 10:19   Re: C4 Plant Money Bonus
Reply With Quote #29

Sry for my Bad english ^^"
but i thing this is better T and CT become money when plant or defuse, right?
Code:
#include <amxmodx>
#include <cstrike>
#include <csx>

static const PLUGIN_NAME[] = "Bomb Plant/Defuse Money Bonus"
static const PLUGIN_VERSION[] = "1.1"
static const PLUGIN_AUTHOR[] = "Locks"

new PCvarBonus

public plugin_init()
{
    register_plugin(PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR)
    PCvarBonus = register_cvar("amx_plant_bonus", "150")
}

public bomb_planted(id)
{
    new money = cs_get_user_money(id)
    new bonus = get_pcvar_num(PCvarBonus)
    cs_set_user_money(id, money + bonus)
}

public bomb_defused(id)
{
    new money = cs_get_user_money(id)
    new bonus = get_pcvar_num(PCvarBonus)
    cs_set_user_money(id, money + bonus)
}
and it works ^^"
schmurgel1983 is offline
rx1983
Senior Member
Join Date: Jan 2009
Location: BRASIL
Old 01-25-2009 , 15:38   Re: C4 Plant Money Bonus
Reply With Quote #30

c4 bomb frag all to team, ct defuse, ou terror explode, frag all, sos help

lang : portugues brazil , sos-help ???

como faço pra colocar frags para todos do mesmo time que ganha no counter strike ??????????
rx1983 is offline
Send a message via MSN to rx1983
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 02:18.


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