Raised This Month: $32 Target: $400
 8% 

Clan Tag Checker ( Protector ) v2.0


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Plugin Info:     Modification:   ALL        Category:   General Purpose        Approver:   devicenull (200)
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 07-09-2005 , 03:12   Clan Tag Checker ( Protector ) v2.0
Reply With Quote #1

Clan Tag Checker v2.0 - by v3x

So.. How is this different from the "Clan Tag Protection" plugin? I'll tell you.. You have a file in this one, in which you can store tags/Steam ID's/comments. Also, another nice feature about this plugin is that you can actually add tags to the file from a command, in-game! I'll go more into depth about that in a bit..

Commands:
  • amx_addplayer "Tag Here" <nick,#userid>
  • amx_addsteam "Tag Here" "STEAM_0:0:129394"
  • THE STEAM ID MUST HAVE QUOTES AROUND IT TO WORK!

The above commands will automatically format a line containing the tag/authid and put it in the file.

When the player connects or changes his name, the plugin will automatically go through the list and try to find that tag is the player's name. If it does, it will kick him with the message "Clan Tag Protected" after 3 seconds. Then it'll display a message to all players.

File Format: ( clan_tags.ini goes in your /configs directory! )
Quote:
"LoCk !" STEAM_0:0:293023
"[Wo0t]" STEAM_0:0:934923
"{NM}" STEAM_0:0:832983
You can also add comments by adding an ' ; ' in front of the line like so:
Quote:
; this is a comment, it won't be read as a tag
To do:
  • - Add checking of duplicate tags with the same auth ID's in the command. Changed .txt to .ini .
  • Add tag remover command
  • Add optional immunity and reserved slot flags

Updates:
  • v1.0 - Initial plugin release
  • v1.1 - Added/adjusted in-game commands
  • v2.0 - Largely rewritten & fixed a few bugs

Quote:
NOTES:
You cannot have "double quotes" in the clan tag itself! The plugin will automatically remove them. Maybe in a future release I will make it so you can use quotes.

If you remove someone's tag from the list, and they are in the game and they change their name to something else, they will be kicked because it's going to go by the old name. Nothing major, just thought I'd point that out.

I HIGHLY RECOMMEND THAT YOU DON'T EDIT CURRENT PLAYERS FROM THE FILE WHILE THEY ARE IN-GAME! ( It could kick them and they'd have to reconnect )
*NEW* Want a version that doesn't check bots? Go here:
http://forums.alliedmods.net/showthr...=143804#148826

Enjoy!
Attached Files
File Type: zip clan_tag_checker.zip (231 Bytes, 5961 views)
File Type: sma Get Plugin or Get Source (clan_tag_checker.sma - 8070 views - 5.4 KB)
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
 


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 19:16.


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