Raised This Month: $ Target: $400
 0% 

500 health for 1 second after a kill?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
bibu
Veteran Member
Join Date: Sep 2010
Old 07-29-2013 , 12:56   Re: 500 health for 1 second after a kill?
Reply With Quote #1

Just to clarify, is there a need to check if the victim is a player and later checking being connected?
__________________
Selling tons of my own private works.
Accepting paid work for clans and communities.
Don't hesitate to contact me.
bibu is offline
guipatinador
SourceMod Donner Party
Join Date: Oct 2009
Location: Poortugal
Old 07-29-2013 , 14:51   Re: 500 health for 1 second after a kill?
Reply With Quote #2

Quote:
Originally Posted by bibu View Post
Just to clarify, is there a need to check if the victim is a player
I think is not necessary.

Quote:
and later checking being connected?
The killer could just disconnect, so its needed.

Last edited by guipatinador; 07-29-2013 at 14:51.
guipatinador is offline
bibu
Veteran Member
Join Date: Sep 2010
Old 07-29-2013 , 14:52   Re: 500 health for 1 second after a kill?
Reply With Quote #3

Quote:
Originally Posted by guipatinador View Post
The killer could just disconnect, so its needed.
Yes I know, but I meant both checks for the victim.
__________________
Selling tons of my own private works.
Accepting paid work for clans and communities.
Don't hesitate to contact me.
bibu is offline
guipatinador
SourceMod Donner Party
Join Date: Oct 2009
Location: Poortugal
Old 07-29-2013 , 14:58   Re: 500 health for 1 second after a kill?
Reply With Quote #4

Quote:
Originally Posted by bibu View Post
Yes I know, but I meant both checks for the victim.
Its not necessary.
I do a lot of checks always
guipatinador is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 07-30-2013 , 01:16   Re: 500 health for 1 second after a kill?
Reply With Quote #5

Quote:
Originally Posted by guipatinador View Post
Its not necessary.
I do a lot of checks always
Just remove them then.

PHP Code:
    register_event"DeathMsg" "Event_DeathMsg" "a" "1>0" )
}

public 
Event_DeathMsg( )
{
    new 
iKiller read_data)

    if( 
iKiller g_iMaxPlayers && is_user_aliveiKiller ) && iKiller != read_data) )
    {
        
set_user_godmodeiKiller)
        
remove_taskiKiller )
        
set_taskTIME_WITH_GODMODE"Disable_Godmode"iKiller )
    }

__________________
- tired and retired -

- my plugins -

Last edited by ConnorMcLeod; 07-30-2013 at 01:19.
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 15:54.


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