Raised This Month: $ Target: $400
 0% 

[REQ] Health bonus


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Lolz0r
Veteran Member
Join Date: Nov 2010
Location: Balgaria
Old 12-17-2011 , 16:52   [REQ] Health bonus
Reply With Quote #1

I want system, which after each murder(default, hs, knife, he grenade) to give healt(HP)(cvars). Maximum HP to be 300(cvar). After each murder - different fade screen(cvars). Also fade screen time(cvar), and cvars for how smoothly to appears and disappears fade-it.

Code:
Default - 10 HP
Hs - 15 HP
Knife - 20 HP
He Grenade - 25 HP
Thanks in advanced!

Last edited by Lolz0r; 06-15-2012 at 12:24.
Lolz0r is offline
Lolz0r
Veteran Member
Join Date: Nov 2010
Location: Balgaria
Old 01-02-2012 , 16:58   Re: [SUG] Vampire - adding functions
Reply With Quote #2

Bump.
Lolz0r is offline
Lolz0r
Veteran Member
Join Date: Nov 2010
Location: Balgaria
Old 02-19-2012 , 15:01   Re: [SUG] Vampire by ConnorMcLeod - adding functions
Reply With Quote #3

Somebody help me, please, this plugin will be put on chain server's.
Lolz0r is offline
Devil259
Veteran Member
Join Date: Dec 2009
Location: France (59)
Old 02-19-2012 , 15:26   Re: [SUG] Vampire by ConnorMcLeod - adding functions
Reply With Quote #4

This plugin should support knife kill and he kill (not sure for he).
__________________
You can do anything you set your mind to, man.

Devil259 is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 02-19-2012 , 15:59   Re: [SUG] Vampire by ConnorMcLeod - adding functions
Reply With Quote #5

Spoiler
__________________
- tired and retired -

- my plugins -

Last edited by ConnorMcLeod; 10-15-2012 at 01:17.
ConnorMcLeod is offline
Lolz0r
Veteran Member
Join Date: Nov 2010
Location: Balgaria
Old 02-19-2012 , 16:02   Re: [SUG] Vampire by ConnorMcLeod - adding functions
Reply With Quote #6

Xmm I dont now, but I want to be whit cvar's:

Code:
g_HpBonusKnife = register_cvar( "amx_vampire_hp_knife", "10" ) 
g_HpBonusGrenade = register_cvar( "amx_vampire_hp_grenade", "35" ) 
g_ColorKnife = register_cvar( "amx_vampire_color_knife", "000100255" ) 
g_ColorGrenade = register_cvar ("amx_vampire_color_grenade", "000255100" )
Can you help me?


EDIT: ConnorMcLeod, I do not see where they cvars?

Last edited by Lolz0r; 02-19-2012 at 16:17.
Lolz0r is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 02-20-2012 , 01:19   Re: [SUG] Vampire by ConnorMcLeod - adding functions
Reply With Quote #7

No more cvars excepted amx_vampire_max_hp

Use command amx_set_vampire

amx_set_vampire <weapon shortname or HS or Default> <HP> <FadeTime> <Red> <Green> <Blue> <Alpha>

Put in amxx.cfg :

amx_set_vampire Default 10 4 0 255 0 75
amx_set_vampire HS 35 4 0 255 0 75
amx_set_vampire knife 20 4 255 0 255 100
amx_set_vampire hegrenade 15 4 0 200 255 100

Weapons short names are exact "weapon_****" without "weapon_", don't forget that mp5 is in fact mp5navy.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Devil259
Veteran Member
Join Date: Dec 2009
Location: France (59)
Old 02-20-2012 , 01:31   Re: [SUG] Vampire by ConnorMcLeod - adding functions
Reply With Quote #8

Quote:
Originally Posted by ConnorMcLeod View Post
don't forget that mp5 is in fact mp5navy.
And glock is glock18.

Spoiler
__________________
You can do anything you set your mind to, man.

Devil259 is offline
Lolz0r
Veteran Member
Join Date: Nov 2010
Location: Balgaria
Old 02-20-2012 , 17:59   Re: [SUG] Vampire by ConnorMcLeod - adding functions
Reply With Quote #9

As you have done it I can set different value to any weapon, right? And if you want you can add how smoothly to appears and disappears fade-it.

Last edited by Lolz0r; 02-20-2012 at 18:03.
Lolz0r is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 02-21-2012 , 01:03   Re: [SUG] Vampire by ConnorMcLeod - adding functions
Reply With Quote #10

Quote:
Originally Posted by Lolz0r View Post
As you have done it I can set different value to any weapon, right? And if you want you can add how smoothly to appears and disappears fade-it.
Yes, but you can only set the disappear time.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
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 11:18.


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