Nosotros somos bandidos
-
Автор темы
- #1
lemme show u the codes and explain where to put and how. First get this code
Somewhere in misc.h
A.
A.this we put in TGFCFg at b-hop and strafe and other things (misc part)
A.
A.we put in config.h this code "
"
And if you guys don't have DispatchUserMessage and CallVfunction get this and put in class "iBaseClientDLL" in guess what file? Exactly .. in iBaseClientDLL.
We put the DispatchUserMessage code under "Virtual ClientClass * GetAllClasses (void * ppClass, int index)"
A.If something gone wrong or not working, Pm in english language pwease.
BTW, This code it's maded for nanosense, but i remaded now for xy0 SDK, i'm not sure if it's gonna work on xy0.
int * GetCompetitiveRanking (int index) // index = index of player, we r trying to get rank
{
static int _m_flPoseParameter = g_pNetvars-> GetOffset ("DT_CSPlayerResource", "m_iCompetitiveRanking");
return (int *) ((uintptr_t) this + _m_flPoseParameter + index * 4);
}
void rankrevealall ()
{
g_pClientDll-> DispatchUserMessage (50, 0, 0, nullptr);
}
{
static int _m_flPoseParameter = g_pNetvars-> GetOffset ("DT_CSPlayerResource", "m_iCompetitiveRanking");
return (int *) ((uintptr_t) this + _m_flPoseParameter + index * 4);
}
void rankrevealall ()
{
g_pClientDll-> DispatchUserMessage (50, 0, 0, nullptr);
}
Somewhere in misc.h
A.
A.this we put in TGFCFg at b-hop and strafe and other things (misc part)
SetupValue (c_config :: get (). Misc_rankrevealall, false, "Misc", "misc_rankrevealall");
A.we put in config.h this code "
bool misc_rankrevealall = false;
And if you guys don't have DispatchUserMessage and CallVfunction get this and put in class "iBaseClientDLL" in guess what file? Exactly .. in iBaseClientDLL.
template <typename FuncType>
__forceinline static FuncType CallVFunction (void * ppClass, int index)
{
int * pVTable = * (int **) ppClass;
int dwAddress = pVTable [index];
return (FuncType) (dwAddress);
}
bool DispatchUserMessage (int messageType, int arg, int arg1, void * data)
{
using DispatchUserMessage_t = bool * (__thiscall *) (void *, int, int, int, void *);
return CallVFunction <DispatchUserMessage_t> (this, 38) (this, messageType, arg, arg1, data);
}
__forceinline static FuncType CallVFunction (void * ppClass, int index)
{
int * pVTable = * (int **) ppClass;
int dwAddress = pVTable [index];
return (FuncType) (dwAddress);
}
bool DispatchUserMessage (int messageType, int arg, int arg1, void * data)
{
using DispatchUserMessage_t = bool * (__thiscall *) (void *, int, int, int, void *);
return CallVFunction <DispatchUserMessage_t> (this, 38) (this, messageType, arg, arg1, data);
}
We put the DispatchUserMessage code under "Virtual ClientClass * GetAllClasses (void * ppClass, int index)"
A.If something gone wrong or not working, Pm in english language pwease.
BTW, This code it's maded for nanosense, but i remaded now for xy0 SDK, i'm not sure if it's gonna work on xy0.
Последнее редактирование модератором: