Results 1 to 10 of 12
-
05-01-2013, 06:40 #1
- Join Date
- Mar 2010
- Posts
- 13
Clan-Tag Kicker with a Whitelist?
Hi,could anyone make a Clan-Tag Kicker with Whitelist? i noticed in BF3 alot of platoons are using the same clan tags when they come into your server you have set up they get all the perks of youe whitelists set up for your clan,would be nice to have a plugin that you could set up with a list of clan members on it so only members on the list could wear the tag in the servers,thank you
-
05-01-2013, 16:19 #2
You can do this with Insane Limits:
http://www.phogue.net/forumvb/showth...ll=1#post60265I won't do support via PM: if you need help, make a topic on the public forums.
-
05-01-2013, 16:57 #3
-
05-01-2013, 17:04 #4
I don't think it's possible with ProconRulz, because ProconRulz does not fetch the clantags from Battlelog.
But I'm using ProconRulz & InsaneLimits at the same time without issues.Last edited by EBassie; 05-01-2013 at 17:11.
I won't do support via PM: if you need help, make a topic on the public forums.
-
06-01-2013, 02:29 #5
-
06-01-2013, 06:13 #6
- Join Date
- Mar 2010
- Posts
- 13
-
06-01-2013, 14:05 #7
My InsaneLimits has 2 custom lists: admins & admin_tags
The "admins" list contains all my members who may ware the clantag
The "admin_tags" list contains the tags our clan uses: 11 & 11T
So, when you have the lists, you can make this "ClanTag Protector" limit.
Set Evaluation: OnSpawn
First Check: Code
Action: None
Code:String adminList = "admins"; // Name of custom list for admin names String adminTags = "admin_tags"; // Name of custom list for admin tags String ClanWarning = player.Name + "_ClanNameWarning"; String KickMessage = plugin.R("%p_n%, please change your ClanTag"); String BanMessage = plugin.R("%p_n%, you have been banned for using a reserved ClanTag"); int CWarning = 0; if (server.Data.issetInt(ClanWarning)) CWarning = server.Data.getInt(ClanWarning); if (!plugin.isInList(player.Name, adminList) && plugin.isInList(player.Tag, adminTags)) { if (CWarning == 0) { plugin.KickPlayerWithMessage(player.Name, KickMessage); } if (CWarning == 1) { plugin.KickPlayerWithMessage(player.Name, KickMessage); } if (CWarning >= 2) { plugin.EABanPlayerWithMessage(EABanType.EA_GUID, EABanDuration.Permanent, player.Name, 0, BanMessage); } server.Data.setInt(ClanWarning, CWarning+1); return false; }
I won't do support via PM: if you need help, make a topic on the public forums.
-
08-01-2013, 06:48 #8
- Join Date
- Mar 2010
- Posts
- 13
Hi,thank you very much
-
09-08-2013, 08:04 #9
If I just wanted to ban a clans tags would this work?
I made a custom list named "BannedClanTags" and added the tags to the "list_1_data" that I don't want on the server.
Code:String adminList = "admins"; // Name of custom list for admin names --------->>(could I remove this?) String adminTags = "BannedClanTags"; // Name of custom list for admin tags String ClanWarning = player.Name + "_ClanNameWarning"; String KickMessage = plugin.R("%p_n%, Your Clan is not welcome in our servers"); String BanMessage = plugin.R("%p_n%, Your clan is banned from our servers"); int CWarning = 0; if (server.Data.issetInt(ClanWarning)) CWarning = server.Data.getInt(ClanWarning); if (!plugin.isInList(player.Name, adminList) && plugin.isInList(player.Tag, adminTags)) { if (CWarning == 0) { plugin.KickPlayerWithMessage(player.Name, KickMessage); } if (CWarning == 1) { plugin.KickPlayerWithMessage(player.Name, KickMessage); } if (CWarning >= 2) { plugin.EABanPlayerWithMessage(EABanType.EA_GUID, EABanDuration.Permanent, player.Name, 0, BanMessage); } server.Data.setInt(ClanWarning, CWarning+0); return false; }
-
14-09-2013, 19:20 #10
- Join Date
- Apr 2012
- Location
- Manhester UK
- Posts
- 169
keep the names the same, just make the admin_list contain the tags you want to ban.
this is the code i use, i have removed a few bits
Code:String adminList = "admins"; // Name of custom list for admin names String adminTags = "admin_tags"; // Name of custom list for admin tags String ClanWarning = player.Name + "_ClanNameWarning"; String KickMessage = plugin.R("%p_n%, Stay Away"); String BanMessage = plugin.R("%p_n%, you have been banned Have a Nice Day"); int CWarning = 0; if (server.Data.issetInt(ClanWarning)) CWarning = server.Data.getInt(ClanWarning); if (!plugin.isInList(player.Name, adminList) && plugin.isInList(player.Tag, adminTags)) { if (CWarning >= 0) { plugin.EABanPlayerWithMessage(EABanType.EA_GUID, EABanDuration.Permanent, player.Name, 0, BanMessage); } server.Data.setInt(ClanWarning, CWarning+1); return false; }