View Single Post
Nursik
Senior Member
Join Date: Jul 2016
Location: In TF2
Old 11-01-2016 , 13:05   Re: [GetEventString]What should i add to make this work?
Reply With Quote #3

Quote:
Originally Posted by Mitchell View Post
Code:
public Action OnPlayerDeath(Event event, const char[] name, bool dontBroadcast) 
{ 
    char classname[64]; 
    GetEventString(event, "weapon", classname, sizeof(classname)); 
    if (StrEqual(classname, "tf_weapon_fireaxe") && weaponID == 214) 
    { 
        //Do something 
    } 
}
I'll see if this works. EDIT: doesn't work, guess i have to use only the ID check. :/
EDIT2: even weaponID doesn't work alone, ah.

Last edited by Nursik; 11-01-2016 at 13:32.
Nursik is offline