Raised This Month: $ Target: $400
 0% 

cs_get_user_deaths & get_user_deaths


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 11-07-2005 , 23:52  
Reply With Quote #1

CS:

Code:
return *((int *)pPlayer->pvPrivateData + OFFSET_CSDEATHS);

Regular:

Code:
return (cell)(pPlayer->ingame ? pPlayer->deaths : 0);

Basically regular get_user_deaths returns the player's variable named "deaths", while CS returns a private data offset. I'm guessing this means that CS doesn't use the traditional variable for storing a player's deaths, but I'm not sure why.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX 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 23:43.


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