-
Автор темы
- #1
Hi, like title says. If i turn on clantag everything is alright until map change .. When map is changed clantag won't even show up
Im using CSGOSIMPLE
My code:
void Clantag ()
{
static bool restore = false;
static float lastchangetime = 0.0;
if (g_Options.misc_clantag && g_LocalPlayer) {
if (g_GlobalVars-> curtime + (GetFullLatency () / 2) - lastchangetime> = 0.35f)
{
std :: string TAG;
if (g_Options.misc_customclan && g_Options.customclan && g_Options.customclan [0] && g_Options.misc_clantaga)
TAG = g_Options.customclan;
else
if (! g_Options.misc_customclan)
TAG = _xor _ ("Hook.cc") .c_str ();
else
TAG = _xor_ ("") .c_str ();
Utils :: SetClantag (TAG.substr (0, int (g_GlobalVars-> curtime + (GetFullLatency () / 2))% TAG.length ()). C_str ());
lastchangetime = (g_GlobalVars-> curtime + (GetFullLatency () / 2));
restore = true;
}
}
else if (restore) {
restore = false;
Utils :: SetClantag ("");
}
}
Im using CSGOSIMPLE
My code:
void Clantag ()
{
static bool restore = false;
static float lastchangetime = 0.0;
if (g_Options.misc_clantag && g_LocalPlayer) {
if (g_GlobalVars-> curtime + (GetFullLatency () / 2) - lastchangetime> = 0.35f)
{
std :: string TAG;
if (g_Options.misc_customclan && g_Options.customclan && g_Options.customclan [0] && g_Options.misc_clantaga)
TAG = g_Options.customclan;
else
if (! g_Options.misc_customclan)
TAG = _xor _ ("Hook.cc") .c_str ();
else
TAG = _xor_ ("") .c_str ();
Utils :: SetClantag (TAG.substr (0, int (g_GlobalVars-> curtime + (GetFullLatency () / 2))% TAG.length ()). C_str ());
lastchangetime = (g_GlobalVars-> curtime + (GetFullLatency () / 2));
restore = true;
}
}
else if (restore) {
restore = false;
Utils :: SetClantag ("");
}
}