View Single Post
eyal282
Veteran Member
Join Date: Aug 2011
Old 01-13-2021 , 09:24   Re: [CSGO] Use team m_iClanID
Reply With Quote #2

Quote:
Originally Posted by notMe2 View Post
Is it possible to use m_iClanID for custom purposes in my plugin or does it get overwritten by the game occasionally?
public Action:OnClientCommandKeyValues(client, KeyValues kv)
{
new String:SectionName[32];

if(KvGetSectionName(kv, SectionName, sizeof(SectionName)) && StrEqual(SectionName, "ClanTagChanged", false))
{
return Plugin_Handled;
}

return Plugin_Continue;
}


This code anywhere in your code will block changing the clan tag. This will NOT block CS_SetClientClanTag.
__________________
I am available to make plugins for pay.

Discord: Eyal282#1334
eyal282 is offline