|
Senior Member
Join Date: Nov 2016
Location: Moms Basement
|
02-09-2017
, 21:24
Re: [CS:S/CS:GO] TOGs Clan Tags
|
#122
|
Quote:
Originally Posted by ThatOneGuy
Paste your code here and how you have the clan tags plugin configured, and I can help more.
|
Code:
Spoiler
Code:
public void OnPluginStart()
{
RegAdminCmd("sm_clantag", Command_Tag, ADMFLAG_CUSTOM5);
}
public Action Command_Tag(int client, int args)
{
if(args != 1)
{
ReplyToCommand(client, "Usage: sm_clantag <tag>");
return Plugin_Handled;
}
char arg1[32];
GetCmdArg(1, arg1, sizeof(arg1));
Format(tag[client], 50, "%s", arg1);
CS_SetClientClanTag(client, arg1);
return Plugin_Handled;
}
Config:
Spoiler
[
Code:
"Setups"
{
"Owner"
{
"flag" "z"
"tag" "[OWNER]"
"exclude" "0"
}
"Admin Tag"
{
"flag" "b"
"tag" "[ADMIN]"
"exclude" "0"
}
}
I eventually want to add a menu that will allow people to select a tag but for now i just want to make sure the tags stay before i try to do that
__________________
Last edited by Czar_; 02-09-2017 at 21:25.
|
|
|
|