Raised This Month: $ Target: $400
 0% 

[Any] [CCC] Set Tag (1.0.0, 08-03-16)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Mayor Gamer
Senior Member
Join Date: Nov 2012
Location: GetLocationOfUser(me);
Plugin ID:
5303
Plugin Version:
1.0.0
Plugin Category:
Server Management
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Sets tags on players trough commands. Custom config support.
    Old 08-03-2016 , 17:51   [Any] [CCC] Set Tag (1.0.0, 08-03-16)
    Reply With Quote #1

    [Custom Chat Colors Module] Set Tag

    Description
    Tired of always having to modify the config just to set a tag? Or wanting players to set their own tags trough a menu? This module for Custom Chat Colors is what you need.

    This plugin allows you to set a tag on a player while they're on the server or map change. You can also use the config file to let players set their tag from what you decide. You can also color the tags if using the command to manually set them. If you want players to have colors from tags they set from the menu, define their Tag Color in the CCC Config file.

    Compiling the plugin requires Custom Chat Colors and More Colors!
    Commands

    Spoiler

    ConVars

    Spoiler

    Overrides
    Quote:
    tag_access - Marks the user access to the menu if ccc_tag_adminonly is 1.
    Config File
    Config file goes in configs/ccc_tags.cfg.
    Code:
    "CCCTagMenu"		// Main key. Don't change it.
    {
    	"1"		// Indexes. They must be in order from 1 and on. Maximum is 100. You can change this value in the source code.
    	{
    		"tag"		"[Cool] "		// "tag" is identifier. Don't change it. Change the next string like "[Cool] " or something. That's how the tag will appear in the menu and be used.
    	}
    	"2"
    	{
    		"tag"		"Hello, my name is: "
    	}
    	"3"
    	{
    		"tag"		"PEW =-"
    	}
    }
    Changelog

    Quote:
    Spoiler
    Attached Files
    File Type: sp Get Plugin or Get Source (customchatcolors_settag.sp - 916 views - 10.0 KB)
    File Type: smx customchatcolors_settag.smx (16.0 KB, 1012 views)
    File Type: cfg ccc_tags.cfg (368 Bytes, 1057 views)
    __________________

    Last edited by Mayor Gamer; 08-03-2016 at 17:55.
    Mayor Gamer is offline
    Mayor Gamer
    Senior Member
    Join Date: Nov 2012
    Location: GetLocationOfUser(me);
    Old 08-04-2016 , 22:00   Re: [Any] [CCC] Set Tag (1.0.0, 08-03-16)
    Reply With Quote #2

    Reserved-
    __________________
    Mayor Gamer is offline
    skinheadxtreme
    AlliedModders Donor
    Join Date: Jul 2013
    Old 08-14-2016 , 11:50   Re: [Any] [CCC] Set Tag (1.0.0, 08-03-16)
    Reply With Quote #3

    Can i set a tag for everyone as soon as they enter?
    skinheadxtreme is offline
    Mayor Gamer
    Senior Member
    Join Date: Nov 2012
    Location: GetLocationOfUser(me);
    Old 08-14-2016 , 14:06   Re: [Any] [CCC] Set Tag (1.0.0, 08-03-16)
    Reply With Quote #4

    Quote:
    Originally Posted by skinheadxtreme View Post
    Can i set a tag for everyone as soon as they enter?
    Yes you can. Change the OnClientPutInServer(client) part of the source code to this:

    Code:
    public OnClientPutInServer(client)
    {
    	CCC_SetTag(client, "<yourtaghere> ");
    }
    Then compile it (You need to have CCC and MoreColors to compile it. Place the MoreColors inc file inside scripting/include then compile the code.)
    __________________
    Mayor Gamer is offline
    skinheadxtreme
    AlliedModders Donor
    Join Date: Jul 2013
    Old 08-15-2016 , 08:41   Re: [Any] [CCC] Set Tag (1.0.0, 08-03-16)
    Reply With Quote #5

    dint work, it dint set the tag for everyone :/
    skinheadxtreme is offline
    Mayor Gamer
    Senior Member
    Join Date: Nov 2012
    Location: GetLocationOfUser(me);
    Old 08-15-2016 , 09:47   Re: [Any] [CCC] Set Tag (1.0.0, 08-03-16)
    Reply With Quote #6

    Quote:
    Originally Posted by skinheadxtreme View Post
    dint work, it dint set the tag for everyone :/
    Forgot that CCC only works after admin check. Bring back the OnClientPutInServer(client) to

    Code:
    public OnClientPutInServer(client)
    {
    	CCC_ResetTag(client);
    }
    And now add this to the code (Right below OnClientPutInServer)

    Code:
    public void OnClientPostAdminCheck(client)
    {
    	CCC_SetTag(client, "<tag here> ");
    }
    Now compile it. It should work now.
    __________________
    Mayor Gamer is offline
    skinheadxtreme
    AlliedModders Donor
    Join Date: Jul 2013
    Old 08-15-2016 , 13:11   Re: [Any] [CCC] Set Tag (1.0.0, 08-03-16)
    Reply With Quote #7

    Never mind It did work but the tag is only on chat not in scoreboard is it correct like that?
    skinheadxtreme is offline
    Mayor Gamer
    Senior Member
    Join Date: Nov 2012
    Location: GetLocationOfUser(me);
    Old 08-15-2016 , 13:58   Re: [Any] [CCC] Set Tag (1.0.0, 08-03-16)
    Reply With Quote #8

    Quote:
    Originally Posted by skinheadxtreme View Post
    Never mind It did work but the tag is only on chat not in scoreboard is it correct like that?
    Tags from Custom Chat Colors only work in chat messages.
    __________________
    Mayor Gamer is offline
    skinheadxtreme
    AlliedModders Donor
    Join Date: Jul 2013
    Old 08-15-2016 , 15:59   Re: [Any] [CCC] Set Tag (1.0.0, 08-03-16)
    Reply With Quote #9

    9EC34FAA[VIP] 00CCFFThe Angel | xTreme-CM.ORG : 000000AAlooooooooooooooooooooool
    its looking like this in chat
    skinheadxtreme is offline
    Mayor Gamer
    Senior Member
    Join Date: Nov 2012
    Location: GetLocationOfUser(me);
    Old 08-16-2016 , 13:04   Re: [Any] [CCC] Set Tag (1.0.0, 08-03-16)
    Reply With Quote #10

    Quote:
    Originally Posted by skinheadxtreme View Post
    9EC34FAA[VIP] 00CCFFThe Angel | xTreme-CM.ORG : 000000AAlooooooooooooooooooooool
    its looking like this in chat
    That's a Custom Chat Colors issue. Post them on their thread right here.
    __________________
    Mayor Gamer 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 21:05.


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