Raised This Month: $214 Target: $400
 53% 

Solved [GetEventString]What should i add to make this work?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Nursik
Senior Member
Join Date: Jul 2016
Location: In TF2
Old 11-01-2016 , 12: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 13:51.
Nursik is offline
 


Thread Tools
Display Modes

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 19:38.


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