Raised This Month: $12 Target: $400
 3% 

[CS:S] Country Clan Tags


Post New Thread Reply   
 
Thread Tools Display Modes
Author
GoD-Tony
Veteran Member
Join Date: Jul 2005
Plugin ID:
2275
Plugin Version:
1.2.0
Plugin Category:
General Purpose
Plugin Game:
Counter-Strike: Source
Plugin Dependencies:
    Servers with this Plugin:
    19 
    Plugin Description:
    Assigns clan tags based on the player's country
    Old 03-14-2011 , 07:13   [CS:S] Country Clan Tags
    Reply With Quote #1

    Country Clan Tags

    This plugin assigns clan tags based on the player's country. It utilizes the new CS:S clan tag section that you see on the scoreboard.



    Installation:
    • Install the plugin as usual.
    • A config will be generated after the first run: plugin.countrytags.cfg
    Cvars:
    • sm_countrytags <0|1|2> - Determines plugin functionality.
      • 0 = Disabled
      • 1 = Tag all players *Default
      • 2 = Only tag players that don't already have a tag

    • sm_countrytags_length <2|3> - Country code length.
      • 2 = CA, US, etc.
      • 3 = CAN, USA, etc. *Default

    • sm_countrytags_bots "CAN,USA" - Tags to assign bots. Separate tags by commas.
    Notes:
    • Requires SourceMod 1.4 or later.
    • I recommend that you use the latest GeoIP database with this plugin.
    Changelog:
    Quote:
    Country Clan Tags 1.2.0
    - Updated to use the new SourceMod 1.4 natives.
    - Config file is now auto-generated.
    - Fixed tags not being assigned on late-load.

    Country Clan Tags 1.1.0
    - Using a more reliable method of assigning tags

    Country Clan Tags 1.0.3
    - Fixed tags not being assigned correctly on some occasions

    Country Clan Tags 1.0.2
    - Added sm_countrytags_length cvar
    - Added support for multiple bot tags

    Country Clan Tags 1.0.1
    - Added sm_countrytags_bots cvar
    - Minor code changes

    Country Clan Tags 1.0.0
    - Initial release
    Attached Files
    File Type: sp Get Plugin or Get Source (countrytags.sp - 5246 views - 4.3 KB)

    Last edited by GoD-Tony; 01-14-2012 at 10:10. Reason: Updated to 1.2.0
    GoD-Tony is offline
    smithy
    SourceMod Donor
    Join Date: Sep 2008
    Location: United Kingdom
    Old 03-15-2011 , 08:44   Re: [CS:S] Country Clan Tags
    Reply With Quote #2

    Hi mate

    Great idea i like this , i dont suppose u could add an option were we could change the tags thats bots are given ?

    Best regards

    smithy

    Edit: Figured out how to edit the .sp and compile many thanks
    __________________


    Last edited by smithy; 03-15-2011 at 08:56. Reason: Solved
    smithy is offline
    GoD-Tony
    Veteran Member
    Join Date: Jul 2005
    Old 03-15-2011 , 09:18   Re: [CS:S] Country Clan Tags
    Reply With Quote #3

    Quote:
    Originally Posted by smithy View Post
    i dont suppose u could add an option were we could change the tags thats bots are given ?

    Edit: Figured out how to edit the .sp and compile many thanks
    Yes, I left it in the code and had it commented out. If anyone else would like this feature then I can add it officially with another cvar.
    GoD-Tony is offline
    smithy
    SourceMod Donor
    Join Date: Sep 2008
    Location: United Kingdom
    Old 03-15-2011 , 11:16   Re: [CS:S] Country Clan Tags
    Reply With Quote #4

    Hi again

    I have edited the source and changed the tags that bots can recieve , but yet in game they display as ??? is their something else i must do

    best regards

    smithy
    __________________

    smithy is offline
    GoD-Tony
    Veteran Member
    Join Date: Jul 2005
    Old 03-15-2011 , 13:25   Re: [CS:S] Country Clan Tags
    Reply With Quote #5

    It sounds you forgot to uncomment that part of the code. It looks like: /* */

    Edit: Updated to 1.0.1

    Last edited by GoD-Tony; 03-15-2011 at 15:07.
    GoD-Tony is offline
    smithy
    SourceMod Donor
    Join Date: Sep 2008
    Location: United Kingdom
    Old 03-17-2011 , 05:30   Re: [CS:S] Country Clan Tags
    Reply With Quote #6

    Hi again my friend

    Just a quick question if u dont mind , is it possible using this line

    sm_countrytags_bots "???" - Tag to assign bots.

    sm_countrytags_bots "UK,GER,BOT" (Would this work )

    To have more than one tag for the bots or is this something that isnt yet availble ?

    best regards

    smithy
    __________________

    smithy is offline
    GoD-Tony
    Veteran Member
    Join Date: Jul 2005
    Old 03-17-2011 , 06:27   Re: [CS:S] Country Clan Tags
    Reply With Quote #7

    Quote:
    Originally Posted by smithy View Post
    sm_countrytags_bots "UK,GER,BOT" (Would this work )

    To have more than one tag for the bots or is this something that isnt yet availble ?
    Right now the bots only support one tag, but I can add this feature in as well. Check back later today or tomorrow.
    GoD-Tony is offline
    GoD-Tony
    Veteran Member
    Join Date: Jul 2005
    Old 03-18-2011 , 03:17   Re: [CS:S] Country Clan Tags
    Reply With Quote #8

    Updated to 1.0.2
    GoD-Tony is offline
    siangc
    Senior Member
    Join Date: Mar 2010
    Old 03-22-2011 , 02:27   Re: [CS:S] Country Clan Tags
    Reply With Quote #9

    Great plugin, but it doesn't always work.
    Maybe this only happens if it cant assign a country to the IP?
    I have "sm_countrytags 1".

    [IMG]http://img251.**************/img251/4769/breakfloor2k50032.th.jpg[/IMG]
    __________________
    siangc is offline
    GoD-Tony
    Veteran Member
    Join Date: Jul 2005
    Old 03-22-2011 , 03:44   Re: [CS:S] Country Clan Tags
    Reply With Quote #10

    Quote:
    Originally Posted by siangc View Post
    Great plugin, but it doesn't always work.
    Maybe this only happens if it cant assign a country to the IP?
    I have "sm_countrytags 1".
    If it can't detect a country then their tag should look like this: [??]

    Was anything shown in your error log?
    GoD-Tony 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 13:34.


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