Raised This Month: $51 Target: $400
 12% 

set_user_deaths?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
gabuch2
AlliedModders Donor
Join Date: Mar 2011
Location: Chile
Old 07-10-2016 , 20:57   set_user_deaths?
Reply With Quote #1

I noticed this method is missing, which is strange, because get_user_deaths is still present. If so, how can I set deaths?

DO NOT say cs_set_user_deaths because, believe it or not, there are more games aside from Counter-Strike.
__________________
gabuch2 is offline
jackp
Member
Join Date: Jan 2016
Location: 
Old 07-10-2016 , 21:18   Re: set_user_deaths?
Reply With Quote #2

Only with modules or messages I think. But no idea.
jackp is offline
OGQH
Junior Member
Join Date: Jul 2016
Location: Kazakhstan, Aktau
Old 07-10-2016 , 21:51   Re: set_user_deaths?
Reply With Quote #3

A Fakemeta tried?
OGQH is offline
Send a message via Skype™ to OGQH
NiHiLaNTh
Way Past Expiration
Join Date: May 2009
Location: Latvia
Old 07-11-2016 , 05:26   Re: set_user_deaths?
Reply With Quote #4

Just use m_iDeaths offset for other games.
__________________

NiHiLaNTh is offline
Send a message via Skype™ to NiHiLaNTh
gabuch2
AlliedModders Donor
Join Date: Mar 2011
Location: Chile
Old 07-11-2016 , 14:36   Re: set_user_deaths?
Reply With Quote #5

Quote:
Originally Posted by NiHiLaNTh View Post
Just use m_iDeaths offset for other games.
Do you know how to find this offset in the gamedll?
__________________
gabuch2 is offline
siriusmd99
Veteran Member
Join Date: Oct 2013
Location: Republic of Moldova
Old 07-11-2016 , 16:00   Re: set_user_deaths?
Reply With Quote #6

For linux:
PHP Code:
//At the top
const OFFSET_DEATHS 444;
const 
OFFSET_LINUX ;

//In your function
set_pdata_int(playerOFFSET_DEATHSget_pdata_int(playerOFFSET_DEATHSOFFSET_LINUX)-1OFFSET_LINUX); 
For windows idk.

Last edited by siriusmd99; 07-11-2016 at 16:01.
siriusmd99 is offline
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 07-11-2016 , 16:39   Re: set_user_deaths?
Reply With Quote #7

And you have just assumed that he runs a Counter-Strike server.

Last edited by klippy; 07-11-2016 at 16:39.
klippy is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 07-11-2016 , 16:39   Re: set_user_deaths?
Reply With Quote #8

This has been asked before, have you searched? You also need to update the score board.

https://forums.alliedmods.net/showthread.php?t=87231
__________________
Bugsy is offline
NiHiLaNTh
Way Past Expiration
Join Date: May 2009
Location: Latvia
Old 07-11-2016 , 17:21   Re: set_user_deaths?
Reply With Quote #9

Tell what mod are you using?
__________________

NiHiLaNTh is offline
Send a message via Skype™ to NiHiLaNTh
gabuch2
AlliedModders Donor
Join Date: Mar 2011
Location: Chile
Old 07-11-2016 , 17:29   Re: set_user_deaths?
Reply With Quote #10

Sven Co-op 5.04, thing is, I want to learn how to get this kind of info myself.
__________________
gabuch2 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 00:47.


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