Raised This Month: $51 Target: $400
 12% 

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
 



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 21:41.


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