[GetEventString]What should i add to make this work?
PHP Code:
|
Re: [GetEventString]What should i add to make this work?
Code:
public Action OnPlayerDeath(Event event, const char[] name, bool dontBroadcast) |
Re: [GetEventString]What should i add to make this work?
Quote:
EDIT2: even weaponID doesn't work alone, ah. |
Re: [GetEventString]What should i add to make this work?
Maybe get weapon_itemid and get the edict classname?
|
Re: [GetEventString]What should i add to make this work?
I don't even know what "doesn't work" means, are you even hooking the event 'player_death', you need to HookEvent for the function to fire when the event is played.
|
Re: [GetEventString]What should i add to make this work?
Guys, i think the weaponID and weapon string are swapped so i got confused. Weaponid works like this: if (weaponID == TF_WEAPON_CLASSNAME), haven't tested weapon string yet.
EDIT: idk what weapon string does, but i can't find the item ID index of the weapon, but i don't need it that much, i'll just find the index of the weapon slot. |
All times are GMT -4. The time now is 15:29. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.