-
Автор темы
- #1
C++:
uintptr_t ExtraPlayerInfo()
{
auto pattern = (uintptr_t)(g_pClient->HUD_GETPLAYERTEAM_FUNCTION);
pattern = FindPattern((PCHAR)"\x0F\xBF\x04\xFF\xFF\xFF\xFF\xFF\xC3", (PCHAR)"xxx?????x", pattern, client.dwBase);
pattern = *(uintptr_t*)(pattern + 4);
pattern = (pattern - offsetof(extra_player_info_t, team_id));
if (AddressNotInSpace(pattern, client.dwBase, client.dwEnd))
ErrorMessage("Error %s", __FUNCTION__);
return pattern;
}
C++:
struct extra_player_info_t
{
short frags;
short deaths;
short team_id;
int has_c4;
int vip;
Vector origin;
float radarflash;
int radarflashon;
int radarflashes;
short playerclass;
short teamnumber;
char teamname[MAX_TEAM_NAME];
bool dead;
float showhealth;
int health;
char location[32];
};
Последнее редактирование: