View Single Post
rtxa
Senior Member
Join Date: Mar 2018
Location: Argentina
Old 04-26-2021 , 22:34   Re: HL Player Models API 1.2 [Last Update: 02/07/2020]]
Reply With Quote #4

Quote:
Originally Posted by Gabe Iggy View Post
hl_get_player_team() is unable to get the team index of the player. Returns 0 with a malformed string.

Tested with bugfixed HL 0.2.51 (59a2950), the latest version of ReHLDS.

Tested with both Orpheu (my own signatures) and ReAPI.

Code:
new teambuf[32]; new teamid = hl_get_player_team(id, teambuf, charsmax(teambuf)); server_print("TEAMID %d - %s", teamid, teambuf);

Code:
TEAMID 0 - k Mesa
Code:
"mp_teamlist" is "Black Mesa;HECU"


EDIT: Managed to solve it by editing the offsets-cbaseplayer.txt file. I just shifted the offsets by 4.
Code:
"m_szTeamName"  // char[16]
{
	"type"      "string"
	"size"      "16"

	"windows"   "1532"
	"linux"     "1552"
	"mac"       "1552"
}
Hello gabe, strange error, with last version of ReHlds, can you tell me the exact the build? Also bugfixedhl hasn't been updated for a long time ago, would you mind to try this one from this CI i made a couple days ago? https://github.com/rtxa/BugfixedHL/actions

Strange to me that you just needed to increase that offset, i wonder if there's a new HL Build
__________________
rtxa is offline