Raised This Month: $ Target: $400
 0% 

The number of kills / deaths


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Touch
Member
Join Date: Apr 2010
Location: Ukraine
Old 04-15-2010 , 10:32   The number of kills / deaths
Reply With Quote #1

Hello!
Please tell us how we can calculate the number of murders / deaths player on the map?
PS: An analogue to es: event_var (es_userkills), event_var (es_userdeaths)
Thanks!
Touch is offline
Send a message via Skype™ to Touch
Scone
Senior Member
Join Date: Apr 2010
Location: England
Old 04-15-2010 , 11:36   Re: The number of kills / deaths
Reply With Quote #2

Just use GetClientDeaths and GetClientFrags.

http://docs.sourcemod.net/api/
__________________
Scone is offline
Leonardo
Veteran Member
Join Date: Feb 2010
Location: 90's
Old 04-15-2010 , 11:48   Re: The number of kills / deaths
Reply With Quote #3

how to set deaths / kills?
__________________
Leonardo is offline
Samantha
SourceMod Donor
Join Date: Feb 2010
Location: Madagascar
Old 04-17-2010 , 10:01   Re: The number of kills / deaths
Reply With Quote #4

SetEntProp(Client, Prop_Data, "m_iFrags", <kills>);
Samantha is offline
Leonardo
Veteran Member
Join Date: Feb 2010
Location: 90's
Old 04-17-2010 , 10:14   Re: The number of kills / deaths
Reply With Quote #5

and "m_iDeaths"?
__________________
Leonardo is offline
Samantha
SourceMod Donor
Join Date: Feb 2010
Location: Madagascar
Old 04-17-2010 , 11:20   Re: The number of kills / deaths
Reply With Quote #6

Yes thats correct. i would recommend changing it on eventdeath, get the attackers id, set it and then set the victim's death higher.
Samantha is offline
I'mSane
Member
Join Date: Apr 2010
Location: SPb, Russia
Old 04-17-2010 , 14:02   Re: The number of kills / deaths
Reply With Quote #7

Where I can get full "m_i..." list?
__________________
Sorry for noob questions.
Sorry for bad english.
I'mSane is offline
Send a message via Skype™ to I'mSane
Leonardo
Veteran Member
Join Date: Feb 2010
Location: 90's
Old 04-17-2010 , 14:16   Re: The number of kills / deaths
Reply With Quote #8

sm_dump_netprops
sm_dump_datamap
__________________
Leonardo is offline
Reply


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 04:32.


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