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

how to check whether knife kills


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
RAW_192
Senior Member
Join Date: Feb 2017
Old 06-25-2017 , 10:21   how to check whether knife kills
Reply With Quote #1

how to check whether a player killed someone with a knife ?
RAW_192 is offline
wickedd
Veteran Member
Join Date: Nov 2009
Old 06-25-2017 , 10:39   Re: how to check whether knife kills
Reply With Quote #2

Here's a way.

PHP Code:
#include < csx >

public client_deathiKilleriVictimiweaponheadshot //  client_death( killer, victim, wpnindex, hitplace, TK )
{    
    if( 
iweapon == CSW_KNIFE )
    {
        
// Knife kill
    
}

__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.

Last edited by wickedd; 06-25-2017 at 10:53.
wickedd is offline
RAW_192
Senior Member
Join Date: Feb 2017
Old 06-25-2017 , 13:05   Re: how to check whether knife kills
Reply With Quote #3

Ok thanks..

One more thing .. Can we use ham here ? or it can just be done by csx?
RAW_192 is offline
wickedd
Veteran Member
Join Date: Nov 2009
Old 06-25-2017 , 13:13   Re: how to check whether knife kills
Reply With Quote #4

Yes. You can use "Ham_Killed" or even"DeathMsg" if you want.
__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.
wickedd is offline
RAW_192
Senior Member
Join Date: Feb 2017
Old 06-25-2017 , 13:16   Re: how to check whether knife kills
Reply With Quote #5

Can you please give an example on how to use Ham_Killed ?
RAW_192 is offline
wickedd
Veteran Member
Join Date: Nov 2009
Old 06-25-2017 , 13:33   Re: how to check whether knife kills
Reply With Quote #6

There are many examples on the forum already.

P.S. I don't see why you don't want to use client_death, it's the easiest way.
__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.
wickedd is offline
Craxor
Veteran Member
Join Date: Jan 2016
Location: Romania
Old 06-25-2017 , 23:16   Re: how to check whether knife kills
Reply With Quote #7

Or DeathMsg with the 4 argument as KNIFE ( 4=KNIFE )
__________________
Project: Among Us
Craxor is offline
Send a message via ICQ to Craxor
RAW_192
Senior Member
Join Date: Feb 2017
Old 06-26-2017 , 01:24   Re: how to check whether knife kills
Reply With Quote #8

Ok thanks solved
RAW_192 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 00:05.


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