Raised This Month: $ Target: $400
 0% 

500 health for 1 second after a kill?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
guipatinador
SourceMod Donner Party
Join Date: Oct 2009
Location: Poortugal
Old 07-29-2013 , 11:28   Re: 500 health for 1 second after a kill?
Reply With Quote #2

PHP Code:
#include < amxmodx >
#include < fun >

#define IsPlayer(%1)        ( 1 <= %1 <= g_iMaxPlayers )
#define TIME_WITH_GODMODE    1.0        

new g_iMaxPlayers

public plugin_init( )
{
    
register_plugin"shit""version""author" )
    
    
g_iMaxPlayers get_maxplayers( )
    
    
register_event"DeathMsg" "Event_DeathMsg" "a" )
}

public 
Event_DeathMsg( )
{
    new 
iKiller read_data)
    new 
iVictim read_data)
    
    if( ( 
iKiller != iVictim ) && IsPlayeriKiller ) && IsPlayeriVictim ) && is_user_aliveiKiller ) && is_user_connectediVictim ) )
    {
        
set_user_godmodeiKiller)
        
set_taskTIME_WITH_GODMODE"Disable_Godmode"iKiller )
    }
}

public 
Disable_Godmodeid )
{    
    if( 
is_user_aliveid ) )
    {
        
set_user_godmodeid)
    }


Last edited by guipatinador; 07-29-2013 at 11:29.
guipatinador is offline
 



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 15:54.


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