Raised This Month: $32 Target: $400
 8% 

Getting weapon class name on player_death


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ambn
Veteran Member
Join Date: Feb 2015
Location: Fun servers
Old 01-31-2017 , 08:44   Getting weapon class name on player_death
Reply With Quote #1

i've searched thourgh the web but i could not find what i was looking for , so how to?
__________________
ambn is offline
Michael Shoe Maker
Senior Member
Join Date: Apr 2016
Old 01-31-2017 , 08:51   Re: Getting weapon class name on player_death
Reply With Quote #2

SDKHook_OnWeaponDrop, then check if client is dead.
Michael Shoe Maker is offline
ambn
Veteran Member
Join Date: Feb 2015
Location: Fun servers
Old 01-31-2017 , 09:24   Re: Getting weapon class name on player_death
Reply With Quote #3

i can't use SDKHooks for this cause there are much more options on the hook,
refering to this , how can i get attacker's Weapon Classname?
__________________
ambn is offline
Addicted.
AlliedModders Donor
Join Date: Dec 2013
Location: 0xA9D0DC
Old 01-31-2017 , 09:37   Re: Getting weapon class name on player_death
Reply With Quote #4

PHP Code:
GetEntityClassname 
https://sm.alliedmods.net/new-api/en...ntityClassname
Addicted. is offline
ambn
Veteran Member
Join Date: Feb 2015
Location: Fun servers
Old 01-31-2017 , 10:04   Re: Getting weapon class name on player_death
Reply With Quote #5

Quote:
Originally Posted by oaaron99 View Post
omg , i'm not meaning this ! i already know of these things but i don't know how to get it on player_death , so how ?
__________________
ambn is offline
8guawong
AlliedModders Donor
Join Date: Dec 2013
Location: BlackMarke7
Old 01-31-2017 , 10:04   Re: Getting weapon class name on player_death
Reply With Quote #6

why not just use
Code:
string	weapon	weapon name killer used
__________________
8guawong is offline
ambn
Veteran Member
Join Date: Feb 2015
Location: Fun servers
Old 01-31-2017 , 10:06   Re: Getting weapon class name on player_death
Reply With Quote #7

So it's like then?
GetEventString(event, weapon, StrWeapon, sizeof(StrWeapon))?
__________________
ambn is offline
8guawong
AlliedModders Donor
Join Date: Dec 2013
Location: BlackMarke7
Old 01-31-2017 , 14:08   Re: Getting weapon class name on player_death
Reply With Quote #8

why don't you try and find out?
__________________
8guawong is offline
Reply



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 07:03.


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