AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting (https://forums.alliedmods.net/forumdisplay.php?f=107)
-   -   [CSGO] Use team m_iClanID (https://forums.alliedmods.net/showthread.php?t=329901)

notMe2 01-12-2021 14:50

[CSGO] Use team m_iClanID
 
Is it possible to use m_iClanID for custom purposes in my plugin or does it get overwritten by the game occasionally?

eyal282 01-13-2021 10:24

Re: [CSGO] Use team m_iClanID
 
Quote:

Originally Posted by notMe2 (Post 2732355)
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.

notMe2 01-13-2021 17:58

Re: [CSGO] Use team m_iClanID
 
Thank you! Will try


All times are GMT -4. The time now is 13:36.

Powered by vBulletin®
Copyright ©2000 - 2021, vBulletin Solutions, Inc.