AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [CS:S] Country Clan Tags (https://forums.alliedmods.net/showthread.php?t=152797)

GoD-Tony 03-14-2011 07:13

[CS:S] Country Clan Tags
 
1 Attachment(s)
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.

https://lh6.googleusercontent.com/_z...ountrytags.png https://lh6.googleusercontent.com/_z...untrytags2.png

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


smithy 03-15-2011 08:44

Re: [CS:S] Country Clan Tags
 
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

GoD-Tony 03-15-2011 09:18

Re: [CS:S] Country Clan Tags
 
Quote:

Originally Posted by smithy (Post 1433581)
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.

smithy 03-15-2011 11:16

Re: [CS:S] Country Clan Tags
 
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

GoD-Tony 03-15-2011 13:25

Re: [CS:S] Country Clan Tags
 
It sounds you forgot to uncomment that part of the code. It looks like: /* */

Edit: Updated to 1.0.1

smithy 03-17-2011 05:30

Re: [CS:S] Country Clan Tags
 
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

GoD-Tony 03-17-2011 06:27

Re: [CS:S] Country Clan Tags
 
Quote:

Originally Posted by smithy (Post 1434598)
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 03-18-2011 03:17

Re: [CS:S] Country Clan Tags
 
Updated to 1.0.2

siangc 03-22-2011 02:27

Re: [CS:S] Country Clan Tags
 
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]

GoD-Tony 03-22-2011 03:44

Re: [CS:S] Country Clan Tags
 
Quote:

Originally Posted by siangc (Post 1437470)
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?


All times are GMT -4. The time now is 11:28.

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