Raised This Month: $ Target: $400
 0% 

[INC] CS:S Clan Tags


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
psychonic

BAFFLED
Join Date: May 2008
Old 02-05-2011 , 10:23   [INC] CS:S Clan Tags
Reply With Quote #1

CS:S Clan Tags
Allows getting and setting of clan tags in CS:S.

Code:
stock CS_GetClientClanTag(client, String:buffer[], size); stock CS_SetClientClanTag(client, const String:tag[]);
*SetClanTag stock was adapted from a snippet by Dr!fter.

If you use the inc in your plugin, it will require the attached gamedata file. If/when it breaks, a new gamedata file will be posted. No changes to your plugin will be needed.
Attached Files
File Type: txt cssclantags.txt (650 Bytes, 2586 views)
File Type: inc cssclantags.inc (1.7 KB, 2153 views)

Last edited by psychonic; 02-05-2011 at 15:42.
psychonic is offline
thetwistedpanda
Good Little Panda
Join Date: Sep 2008
Old 02-05-2011 , 10:58   Re: [INC] CS:S Clan Tags
Reply With Quote #2

I <3 you for this; all we need now is a method of detecting when a tag changes and the evilness can begin.
__________________
thetwistedpanda is offline
GoD-Tony
Veteran Member
Join Date: Jul 2005
Old 02-05-2011 , 11:11   Re: [INC] CS:S Clan Tags
Reply With Quote #3

Going to try this out today, thanks!
GoD-Tony is offline
Mitchell
~lick~
Join Date: Mar 2010
Old 02-05-2011 , 12:15   Re: [INC] CS:S Clan Tags
Reply With Quote #4

<3 love this thanks!
Mitchell is offline
berni
SourceMod Plugin Approver
Join Date: May 2007
Location: Austria
Old 02-05-2011 , 14:00   Re: [INC] CS:S Clan Tags
Reply With Quote #5

Quote:
Originally Posted by thetwistedpanda View Post
I <3 you for this; all we need now is a method of detecting when a tag changes and the evilness can begin.
OnClientSettingsChanged() -> cl_clanid
__________________
Why reinvent the wheel ? Download smlib with over 350 useful functions.

When people ask me "Plz" just because it's shorter than "Please" I feel perfectly justified to answer "No" because it's shorter than "Yes"
powered by Core i7 3770k | 32GB DDR3 1886Mhz | 2x Vertex4 SSD Raid0
berni is offline
psychonic

BAFFLED
Join Date: May 2008
Old 02-05-2011 , 14:13   Re: [INC] CS:S Clan Tags
Reply With Quote #6

Quote:
Originally Posted by berni View Post
OnClientSettingsChanged() -> cl_clanid
Just to elaborate more, in case it further helps anyone, OnClientSettingsChanged fires when any client-replicated var changes. GetClientInfo can then be used to look up the value of any var the client replicates back to the server (cl_clanid in this case).

You can look up a client's cl_clanid on join, and then look in OnClientSettingsChanged to see if it has changed to know if the clan tag has actually changed.
psychonic is offline
thetwistedpanda
Good Little Panda
Join Date: Sep 2008
Old 02-05-2011 , 15:16   Re: [INC] CS:S Clan Tags
Reply With Quote #7

Works like a charm; psychonic you have a syntax error on line 59 of your .inc file , missing a ;.
__________________
thetwistedpanda is offline
psychonic

BAFFLED
Join Date: May 2008
Old 02-05-2011 , 15:42   Re: [INC] CS:S Clan Tags
Reply With Quote #8

Quote:
Originally Posted by thetwistedpanda View Post
Works like a charm; psychonic you have a syntax error on line 59 of your .inc file , missing a ;.
*line 58. (59 is the next line on which it noticed)

Semicolons aren't required in pawn unless you're explicitly forcing them to be

Regardless, thanks! Fixed.
psychonic is offline
thetwistedpanda
Good Little Panda
Join Date: Sep 2008
Old 02-05-2011 , 15:47   Re: [INC] CS:S Clan Tags
Reply With Quote #9

I was close enough haha; but yeah, if anyone has it forced and included it, error time. Thanks for fixing.
__________________
thetwistedpanda is offline
kossolax
AlliedModders Donor
Join Date: Jan 2008
Location: Belgium
Old 02-05-2011 , 18:07   Re: [INC] CS:S Clan Tags
Reply With Quote #10

I was looking for that for months, Thank's!
kossolax 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 18:10.


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