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

Originally Posted by Mitchell View Post
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 14:32.
Nursik is offline