AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   How do I know what weapons to kill the player? (https://forums.alliedmods.net/showthread.php?t=176409)

wwzw 01-17-2012 23:34

How do I know what weapons to kill the player?
 
When one player died . How can I get the weapon's id (Including grenades)? And : Who is the killer(Including suicide).

DarkGL 01-18-2012 06:58

Re: How do I know what weapons to kill the player?
 
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




All times are GMT -4. The time now is 00:21.

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