Raised This Month: $12 Target: $400
 3% 

[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 , 13: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 , 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
notMe2
Member
Join Date: Feb 2014
Old 01-13-2021 , 16: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 09:39.


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