This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

How do I know what weapons to kill the player?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
wwzw
Member
Join Date: Feb 2009
Old 01-17-2012 , 23:34   How do I know what weapons to kill the player?
Reply With Quote #1

When one player died . How can I get the weapon's id (Including grenades)? And : Who is the killer(Including suicide).
wwzw is offline
DarkGL
Senior Member
Join Date: Aug 2010
Location: Warsaw, Poland
Old 01-18-2012 , 06:58   Re: How do I know what weapons to kill the player?
Reply With Quote #2

PHP Code:
register_event("DeathMsg""DeathMsg""a"

PHP Code:
public DeathMsg()
{
        new 
kid read_data(1)  // killer
        
        
new vid read_data(2)  // victim
        
        
new hs read_data(3)   // HeadShot (1 == true)
        
        
new weapon[64]          
        
read_data(4,weapon,charsmaxweapon ))  //short weapon name (without weapon_ / CSW_ )
 
        //code

__________________

Last edited by DarkGL; 01-18-2012 at 06:58.
DarkGL 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 20:37.


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