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

PHP Code:
public Action OnPlayerDeath(Handle:event, const String:name[], bool:dontBroadcast)
{
    new 
String:classname[64];
    
GetEventString(event"weapon"classnamesizeof(classname));
    if (
StrEqual(classname"tf_weapon_fireaxe) && weaponID == 214)
    {
        //Do something
    }

Don't pay much attention for the weaponID(i already defined it), i just put it here in case it could cause problems.

Last edited by Nursik; 11-01-2016 at 14:51.
Nursik is offline