Raised This Month: $149 Target: $400
 37% 

[CSGO] Use team m_iClanID


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
notMe2
Member
Join Date: Feb 2014
Old 01-12-2021 , 14:50   [CSGO] Use team m_iClanID
Reply With Quote #1

Is it possible to use m_iClanID for custom purposes in my plugin or does it get overwritten by the game occasionally?
notMe2 is offline
eyal282
Veteran Member
Join Date: Aug 2011
Old 01-13-2021 , 10: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.
__________________
Accepting private work. Contact me if you're interested.
If you like my work, feel free to donate in appreciation with PayPal or CSGO Skins.

Total Donated: 15$
eyal282 is offline
notMe2
Member
Join Date: Feb 2014
Old 01-13-2021 , 17:58   Re: [CSGO] Use team m_iClanID
Reply With Quote #3

Thank you! Will try
notMe2 is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:21.


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