PDA

View Full Version : [CS:GO] Command not working or thinking errors


exc4libur
03-08-2016, 05:13
Hello,

i tried to to get the used clantag from a client but that doesn't seem to work.

public void OnClientPutInServer(int client)
{
CS_GetClientClanTag(client, g_ClanTag[client], CLANTAG_LENGTH);
CS_SetClientClanTag(client, "Test");
PrintToChatAll("Clantag: %s", g_ClanTag[client]);
LogToFile("testdatei.cfg", "Clantag: %s", g_ClanTag[client]);
}

The only thing i get is following:
L 03/08/2016 - 11:05:43: [restrict_new.smx] Clantag:

Although i use one like [Clanxyz]<player>. Question: Are the clantag and grouptag different things?

Addicted.
03-08-2016, 07:20
Hello,

i tried to to get the used clantag from a client but that doesn't seem to work.

public void OnClientPutInServer(int client)
{
CS_GetClientClanTag(client, g_ClanTag[client], CLANTAG_LENGTH);
CS_SetClientClanTag(client, "Test");
PrintToChatAll("Clantag: %s", g_ClanTag[client]);
LogToFile("testdatei.cfg", "Clantag: %s", g_ClanTag[client]);
}

The only thing i get is following:
L 03/08/2016 - 11:05:43: [restrict_new.smx] Clantag:

Although i use one like [Clanxyz]<player>. Question: Are the clantag and grouptag different things?

That seems like the correct way to get it;

How are you initializing g_ClanTag[]?

On another note, try testing with a command because maybe the clan tag just isn't set that early?

exc4libur
03-08-2016, 07:24
I will give it a try later on, thx.

exc4libur
03-08-2016, 16:33
I tried it with a little timer and it worked. THX.