Raised This Month: $ Target: $400
 0% 

Vampire


Post New Thread Reply   
 
Thread Tools Display Modes
AcidoX
Senior Member
Join Date: Oct 2007
Location: Vilnius
Old 10-01-2008 , 15:05   Re: Vampire
Reply With Quote #21

Here is a version without <fun>. Enjoy!
Attached Files
File Type: sma Get Plugin or Get Source (vampire.sma - 1287 views - 1.7 KB)
__________________
Who need lockerz invite? Pm me.
AcidoX is offline
Send a message via Skype™ to AcidoX
radakina
Junior Member
Join Date: Jun 2008
Old 11-30-2008 , 14:52   Re: Vampire
Reply With Quote #22

it doesn't compile ... error

.. can this plugin work for only a team ???

or an weapon ?
radakina is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 03-15-2009 , 03:34   Re: Vampire
Reply With Quote #23

If someone is still interested in this plugin, here a fakemeta+ham version, with more cvars :

Previous ones : amx_vampire_hp , amx_vampire_hp_hs , amx_vampire_max_hp

New ones :
amx_vampire_color 000100255 // fade color for normal kills
amx_vampire_color_hs 000255100 // fade color for headshots
amx_vampire_fadetime 4 // fade time in seconds
Attached Files
File Type: inc screenfade_util.inc (2.0 KB, 870 views)
File Type: sma Get Plugin or Get Source (vampire.sma - 2710 views - 2.8 KB)
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Deag1y
Member
Join Date: Jul 2008
Location: Russia,Yekaterinburg
Old 03-27-2009 , 02:00   Re: Vampire
Reply With Quote #24

Can you also made cvar for csdm like the heal for teamkills?
thx
__________________
sry if I do mistakes in English [IMG]http://img521.**************/img521/7178/happysw9.gif[/IMG]
Deag1y is offline
Send a message via ICQ to Deag1y Send a message via Skype™ to Deag1y
cs1.7
Senior Member
Join Date: Oct 2008
Old 07-10-2009 , 01:34   Re: Vampire
Reply With Quote #25

hey i want a version where you get the same amount of hp as you have damaged your enemy.

here my attempt ..which of course is not working..
pls see what you can do.

thx & +karma for sure!

PHP Code:
#include <amxmodx>
#include <fakemeta>
#include <hamsandwich>

#define PLUGIN "Vampire"
#define AUTHOR "ConnorMcLeod"
#define VERSION "1.2.0"

#define cs_get_user_team(%1)    get_pdata_int(%1,114)

new g_iMaxPlayers
new g_msgDamage
new g_pCvarMaxHealth

public plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR)


    
g_pCvarMaxHealth register_cvar("amx_vampire_max_hp""150")

    
RegisterHam(Ham_TakeDamage"player""onPlayerDamage")
    
g_msgDamage get_user_msgid("Damage")
    
g_iMaxPlayers get_maxplayers()
}

public 
onPlayerDamage(iVictimiKiller)
{
    if(    
iVictim == iKiller
    
||    !( <= iKiller <= g_iMaxPlayers)
    ||    !
is_user_alive(iKiller)
    ||    
cs_get_user_team(iVictim) == cs_get_user_team(iKiller)    )
    {
        return
    }

    new 
Float:flHealthFloat:flMaxHealth get_pcvar_float(g_pCvarMaxHealth)
    
pev(iKillerpev_healthflHealth)

    if( 
flHealth flMaxHealth )
    {
        new 
Float:flNewHealth
        
new Float:flBonus g_msgDamage

        flNewHealth 
floatmin(flHealth flBonusflMaxHealth)
        
set_pev(iKillerpev_healthflNewHealth)

        
set_hudmessage(0255100, -1.00.1501.01.00.10.1, -1)
        
show_hudmessage(iKiller"Healed +%.0f hp"flNewHealth flHealth)
    }

cs1.7 is offline
shawlinn
Senior Member
Join Date: May 2009
Location: Brazil
Old 07-24-2009 , 21:55   Re: Vampire
Reply With Quote #26

nice
shawlinn is offline
draft
Senior Member
Join Date: Jul 2007
Location: Russia, Saint-Petersburg
Old 11-19-2009 , 17:06   Re: Vampire
Reply With Quote #27

Here is version with fakemeta instead of fun module and with armor also restoring.
Attached Files
File Type: sma Get Plugin or Get Source (vampire.sma - 1231 views - 1.9 KB)
__________________
draft is offline
cs1.7
Senior Member
Join Date: Oct 2008
Old 11-19-2009 , 21:36   Re: Vampire
Reply With Quote #28

thx draft

++karma
cs1.7 is offline
s33k
Senior Member
Join Date: Jul 2009
Location: club420
Old 06-26-2010 , 08:02   Re: Vampire
Reply With Quote #29

Can some one add hp for knife kill?
__________________
s33k is offline
Send a message via MSN to s33k
bumctik
Junior Member
Join Date: Oct 2010
Location: Russian Federation, NSK
Old 01-09-2011 , 08:40   Re: Vampire
Reply With Quote #30

Somebody can correct a plug-in so that for murder of the player was given random hp or reserv for Hl1?
__________________
bumctik is offline
Send a message via ICQ to bumctik Send a message via Skype™ to bumctik
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 00:32.


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