Raised This Month: $32 Target: $400
 8% 

[CS:S/CS:GO] TOGs Clan Tags


Post New Thread Reply   
 
Thread Tools Display Modes
sneaK
SourceMod Moderator
Join Date: Feb 2015
Location: USA
Old 05-03-2015 , 21:54   Re: TOGs Clan Tags
Reply With Quote #11

Quote:
Originally Posted by ThatOneGuy View Post
Updated to v1.1 to fix a small memory leak due to missing a CloseHandle on one of my checks.
Thank you!
__________________
sneaK is offline
secondtimesold
Senior Member
Join Date: Feb 2015
Old 05-05-2015 , 09:30   Re: TOGs Clan Tags
Reply With Quote #12

thanks
__________________
secondtimesold is offline
Lannister
Veteran Member
Join Date: Apr 2015
Old 05-13-2015 , 21:36   Re: TOGs Clan Tags
Reply With Quote #13

togsclantags.cfg to /addons/sourcemod/configs/ folder.

Where is this file?
Lannister is offline
secondtimesold
Senior Member
Join Date: Feb 2015
Old 05-13-2015 , 21:42   Re: TOGs Clan Tags
Reply With Quote #14

just copy this and make your own



Quote:
//////////////////////////////////////////////////////////////////
//
// SAMPLE SETUP:
//
// "Title" <- This can be anything. I suggest making it something indicating what the setup is for.
// {
// "flag" "INPUT" <- There are 3 kinds of inputs. See below.
// "tag" "[SOME TAG]" <- Tag.
// }
//
//////////////////////////////////////////////////////////////////
//
// INPUTS AND ORDER OF OPERATION:
//
// The player will get the first tag that matches them. So, a general order of setups is: Bot setup -> Steam ID setups -> group setups.
//
// BOT: This setup will apply to all bots, and only to bots.
//
// Steam ID (STEAM_0:X:XXXXXXX format): This will apply only to the player whose steam ID it is.
//
// Groups: This is a single, multiple, or multiple sets of admin flags.
// e.g. "a" requires players to have the "a" flag to be considered a match
// e.g. "at" requires players to have BOTH the "a" and "t" flags to be considered a match
// e.g. "a;t" requires players to have EITHER the "a" OR "t" flags to be considered a match
// e.g. "at;b" requires players to have EITHER: BOTH the "a" and "t" flags, OR the "b" flag to be considered a match
//
//////////////////////////////////////////////////////////////////
// Note: Do not change the word "Setups" in the line below, else the plugin will not read this file.
"Setups"
{

"player 1"
{
"flag" "STEAM_0:0:1234567"
"tag" "[Admin] "
}
"player 2"
{
"flag" "STEAM_0:0:1234567"
"tag" "[Moderator] "
}


}
__________________

Last edited by secondtimesold; 05-13-2015 at 21:42.
secondtimesold is offline
ThatOneGuy
Veteran Member
Join Date: Jul 2012
Location: Oregon, USA
Old 05-13-2015 , 23:44   Re: TOGs Clan Tags
Reply With Quote #15

Quote:
Originally Posted by Lannister View Post
togsclantags.cfg to /addons/sourcemod/configs/ folder.

Where is this file?
Didnt realize the file was missing...

Added to OP.
__________________
ThatOneGuy is offline
Lannister
Veteran Member
Join Date: Apr 2015
Old 05-14-2015 , 00:24   Re: TOGs Clan Tags
Reply With Quote #16

Now it works, thanks both of you
Lannister is offline
brlight
Senior Member
Join Date: Jun 2011
Old 05-23-2015 , 14:19   Re: TOGs Clan Tags
Reply With Quote #17

Hi, nice plugin but when trying to compile with sourcemod 1.7 i get this error:

//// togsclantags.sp
//
// G:\csgoserver\csgo\addons\sourcemod\scripting \include\autoexecconfig.inc(380)
: error 163: indeterminate array size in "sizeof" expression (symbol "newlineBu
f")
// togsclantags.sp(160) : warning 234: symbol "GetClientAuthString" is marked as
deprecated: Use GetClientAuthId
//
//
//
// 1 Error.
//
// Compilation Time: 0,3 sec

I can try replacing the "GetClientAuthString" with "GetClientAuthId" to see if it fixes but the other error I donīt know how to solve.
Any help is well apprecciated
brlight is offline
ThatOneGuy
Veteran Member
Join Date: Jul 2012
Location: Oregon, USA
Old 05-24-2015 , 00:30   Re: TOGs Clan Tags
Reply With Quote #18

That is just because you've compiled it with 1.7. The plugin was coded with the old function because then it will still run on pre-1.7 servers, and post as well (i.e. it works on all servers). If I use the new function, I'm pretty sure it wont on pre-1.7 servers.

If you really want to change it for yourself, on line 160, replace the following:
Code:
GetClientAuthString(client, sSteamID, sizeof(sSteamID));
with
Code:
GetClientAuthId(client, AuthId_Steam2, sSteamID, sizeof(sSteamID));
An alternate way to handle both and just hope people use the compiler that matches their server....
Code:
#if SOURCEMOD_V_MAJOR >= 1 && SOURCEMOD_V_MINOR >= 7
	GetClientAuthId(client, AuthId_Steam2, sSteamID, sizeof(sSteamID));
#else
	GetClientAuthString(client, sSteamID, sizeof(sSteamID));
#endif
__________________

Last edited by ThatOneGuy; 05-24-2015 at 03:49.
ThatOneGuy is offline
GaFooB
Member
Join Date: Dec 2014
Old 06-05-2015 , 05:37   Re: TOGs Clan Tags
Reply With Quote #19

I want to compile this plugin myself, but i am getting an error. What can I do to fix this??

Code:
/home/groups/sourcemod/upload_tmp/phpZafOQK.sp(6) : fatal error 182: cannot read from file: "autoexecconfig"

Last edited by GaFooB; 06-05-2015 at 06:02.
GaFooB is offline
shanapu
Veteran Member
Join Date: Apr 2015
Location: .de
Old 06-05-2015 , 06:43   Re: TOGs Clan Tags
Reply With Quote #20

Quote:
Originally Posted by GaFooB View Post
Code:
/home/groups/sourcemod/upload_tmp/phpZafOQK.sp(6) : fatal error 182: cannot read from file: "autoexecconfig"
you need autoexecconfig.inc in your sourcemod/scripting/included to compile
__________________
coding & free software
shanapu 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 12:18.


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