Offset for TeamScore?
Hi,
I would like to set my own team scores but I have an issue. My scores are reset to the original values when a player respawned. I want not to hook the TeamScore Event. Is there a OFFSET to save the score internal? Greetz Leon |
Re: Offset for TeamScore?
I don`t konw if I misread you, this code can save the teamscore into g_TeamScore[ CsTeams ]
Code:
new g_TeamScore[ CsTeams ] |
Re: Offset for TeamScore?
I want not to catch the scores, I want to use my own scores. If I set my scores and a player respawns he got the original scores from cs. Ofcourse I could hook the TeamScore with register_message, but I search for an offset. Anywhere must be saved the scores.
PHP Code:
|
Re: Offset for TeamScore?
Yes, there are 2 offsets, you can see this plugin as example : http://forums.alliedmods.net/showpos...&postcount=397
|
Re: Offset for TeamScore?
Yeah, thanks Arkshine. Did I really read that Orpheu is now also compatible with windows?
|
Re: Offset for TeamScore?
Yes, it is.
|
Re: Offset for TeamScore?
This is fantastic :)
Still a last question: I'm using Ham_TakeDamage to catch a damage and execute some stuff. How I get the hitplace? Is the hitplace already set in the offset? PHP Code:
|
Re: Offset for TeamScore?
Use the player's offset m_LastHitGroup ( 75 ). It would be nice if you start to search before posting, such thing has already been asked numerous times. ( About your code, to check if it's a player, no need to check the classname, just check if the index is between 1 and maxclient. )
|
Re: Offset for TeamScore?
I have searched before I asked here. Exactly for Ham_TakeDamage and Hitplace and I got two threads. I didn't find the answer in these Topics, sorry :)
But thanks for your answer and the tip :) |
| All times are GMT -4. The time now is 03:39. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.