Raised This Month: $51 Target: $400
 12% 

SH_DMG_KILL problems


Post New Thread Reply   
 
Thread Tools Display Modes
Jelle
[b]MOAR CANDY[/b]
Join Date: Aug 2009
Location: Denmark
Old 01-09-2011 , 12:08   Re: SH_DMG_KILL problems
Reply With Quote #11

Maybe its just your server then.
__________________
No idea what to write here...
Jelle is offline
Send a message via MSN to Jelle
The Art of War
Veteran Member
Join Date: Dec 2009
Location: Sweden Rock Festival
Old 01-09-2011 , 16:07   Re: SH_DMG_KILL problems
Reply With Quote #12

Quote:
Originally Posted by Exploited View Post
Nope, doesn't work 100%.
Maybe its because I put a randnum float in it so it wouldnt be 100%........ Remove it..
__________________
The Art of War is offline
Exploited
Veteran Member
Join Date: Jul 2010
Location: Sweden
Old 01-09-2011 , 18:31   Re: SH_DMG_KILL problems
Reply With Quote #13

I removed it and changed it to this before I tested:

PHP Code:
public client_damage(attackervictimdamagewpnindexhitplace)
{
    if ( !
sh_is_active() ) return
    if ( !
is_user_connected(victim) || !is_user_alive(attacker) ) return

    if ( 
gHasGrim[attacker] && wpnindex == CSW_KNIFE && pev(attackerpev_button) & IN_ATTACK2 ) {
        
sh_extra_damage(victimattackerdamage"knife"0SH_DMG_KILL)
    }

__________________
Jelle (1): I LOVE YOU
Jelle (1): Yeah. omg you are so awesome!
--------------
Jelle (1): You know when a poo is about to exit but it is too big?
Jelle (1): God my ass still hurts
Exploited is offline
vittu
SuperHero Moderator
Join Date: Oct 2004
Location: L.A. County, CA
Old 01-10-2011 , 17:33   Re: SH_DMG_KILL problems
Reply With Quote #14

The damage parameter is ignored when using SH_DMG_KILL. The only reason a person would not be killed from SH_DMG_KILL is if the person has godmode. (or the user is VIP and you set extra damage to be ignored for the VIP)

As it is supposed to do godmode supersedes all damage.
vittu is offline
Send a message via AIM to vittu Send a message via MSN to vittu Send a message via Yahoo to vittu
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 06:44.


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