Raised This Month: $ Target: $400
 0% 

[CS:GO] Force players & admins to use a clan tag.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Chesterfield
Senior Member
Join Date: Apr 2013
Old 01-05-2015 , 10:13   [CS:GO] Force players & admins to use a clan tag.
Reply With Quote #1

Hello, i'm requesting a plugin that will force players without admin flag to override their currently Clan Tag with the one that the admin wants, and also, to force admins (with any admin flag) to use an specific clan tag.

Is this possible? i ask this since in my server sometimes some people enter with the clan tag from the "enemy" community, and everyone start insulting them, so, to prevent this, i would like to force everyone to use the clan tag of my community.

Thanks in advanced !
Chesterfield is offline
The1Speck
SourceMod Donor
Join Date: Oct 2014
Location: USA
Old 01-05-2015 , 11:27   Re: [CS:GO] Force players & admins to use a clan tag.
Reply With Quote #2

Can easily be accomplished with CS_SetClientClanTag
__________________

Add me on Steam for personal inquiries or direct assistance.
The1Speck is offline
Chesterfield
Senior Member
Join Date: Apr 2013
Old 01-05-2015 , 12:38   Re: [CS:GO] Force players & admins to use a clan tag.
Reply With Quote #3

I apologize for my ignorance but i don't understand it !
Chesterfield is offline
Arkarr
Veteran Member
Join Date: Sep 2012
Location: Just behind my PC screen
Old 01-05-2015 , 12:58   Re: [CS:GO] Force players & admins to use a clan tag.
Reply With Quote #4

Quickly done between my exercices :
Spoiler

Change the clan tag with the cvar 'sm_default_clan'
Exemple :
In 'server.cfg'
sm_default_clan "[Pr0S-HeADS0t]"
__________________
Want to check my plugins ?

Last edited by Arkarr; 01-06-2015 at 11:52.
Arkarr is offline
Chesterfield
Senior Member
Join Date: Apr 2013
Old 01-05-2015 , 13:20   Re: [CS:GO] Force players & admins to use a clan tag.
Reply With Quote #5

I understand, and, for admins? i mean, i need nonadmins to use an specific clan tag, and admins to use another one, is this possible with this code you gave me?

Thanks in advanced!
Chesterfield is offline
LambdaLambda
AlliedModders Donor
Join Date: Oct 2010
Location: London
Old 01-05-2015 , 13:43   Re: [CS:GO] Force players & admins to use a clan tag.
Reply With Quote #6

Quote:
Originally Posted by Arkarr View Post
Quickly done between my exercices :
Spoiler

Change the clan tag with the cvar 'sm_default_clan'
Exemple :
In 'server.cfg'
sm_default_clan "[Pr0S-HeADS0t]"
Not quite. Because once player connects, he will have assigned that clan tag - right. But once he change it during playing on the server, it will replace it with tag he wants. I would hook it on every frame.
LambdaLambda is offline
Chesterfield
Senior Member
Join Date: Apr 2013
Old 01-05-2015 , 13:44   Re: [CS:GO] Force players & admins to use a clan tag.
Reply With Quote #7

Hello, seems like it doesn't work in CSGO.

Chesterfield is offline
LambdaLambda
AlliedModders Donor
Join Date: Oct 2010
Location: London
Old 01-05-2015 , 14:03   Re: [CS:GO] Force players & admins to use a clan tag.
Reply With Quote #8

It's called on player connect.
LambdaLambda is offline
Arkarr
Veteran Member
Join Date: Sep 2012
Location: Just behind my PC screen
Old 01-06-2015 , 11:45   Re: [CS:GO] Force players & admins to use a clan tag.
Reply With Quote #9

@LambdaLambda
Yap, you are right, doing fixes now

@Chesterfield
All admin with acces to 'b' flag would be able to have a differend tag... I'm updating my code here in a sec.
Also, resize your pictures next time.

EDIT:
Code updated.
__________________
Want to check my plugins ?

Last edited by Arkarr; 01-06-2015 at 11:53.
Arkarr is offline
Chesterfield
Senior Member
Join Date: Apr 2013
Old 01-06-2015 , 12:31   Re: [CS:GO] Force players & admins to use a clan tag.
Reply With Quote #10

Quote:
Originally Posted by Arkarr View Post
@LambdaLambda
Yap, you are right, doing fixes now

@Chesterfield
All admin with acces to 'b' flag would be able to have a differend tag... I'm updating my code here in a sec.
Also, resize your pictures next time.

EDIT:
Code updated.
I'm going to test it now, thanks in advanced

EDIT: when i try to compile it it gives me

/groups/sourcemod/upload_tmp/textv8vYkZ.sp(24) : error 017: undefined symbol "IsValidClient"

/groups/sourcemod/upload_tmp/textv8vYkZ.sp(27) : error 017: undefined symbol "client"

/groups/sourcemod/upload_tmp/textv8vYkZ.sp(30) : error 017: undefined symbol "client" 3 Errors.

Last edited by Chesterfield; 01-06-2015 at 12:34.
Chesterfield is offline
Reply



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:35.


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