AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting (https://forums.alliedmods.net/forumdisplay.php?f=107)
-   -   The number of kills / deaths (https://forums.alliedmods.net/showthread.php?t=124323)

Touch 04-15-2010 10:32

The number of kills / deaths
 
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!

Scone 04-15-2010 11:36

Re: The number of kills / deaths
 
Just use GetClientDeaths and GetClientFrags.

http://docs.sourcemod.net/api/

Leonardo 04-15-2010 11:48

Re: The number of kills / deaths
 
how to set deaths / kills?

Samantha 04-17-2010 10:01

Re: The number of kills / deaths
 
SetEntProp(Client, Prop_Data, "m_iFrags", <kills>);

Leonardo 04-17-2010 10:14

Re: The number of kills / deaths
 
and "m_iDeaths"?

Samantha 04-17-2010 11:20

Re: The number of kills / deaths
 
Yes thats correct. i would recommend changing it on eventdeath, get the attackers id, set it and then set the victim's death higher.

I'mSane 04-17-2010 14:02

Re: The number of kills / deaths
 
Where I can get full "m_i..." list?

Leonardo 04-17-2010 14:16

Re: The number of kills / deaths
 
sm_dump_netprops
sm_dump_datamap


All times are GMT -4. The time now is 23:32.

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