thankyou
Donate to the B3 fund!

"even a small donation helps!"
Donate with PayPal!
The creator of these plugins has not shown activity in a while. Posting in this board may not result in a fast reply or a reply at all. [ Read the full Support Disclaimer here ]
Most of the plugins here are made by B3 users and the authors may not visit frequently. If you need support for plugins or if questions remain unanswered, you will have to contact the author directly. Read the full Support Disclaimer here

NOTE: Do not attach plugins to your forumtopics! Attachements are periodically removed by maintenance tasks. Upload your plugins to our Downloads section instead!

Author Topic: Weapon Control Plugin - Antinoob v1.0.7  (Read 161200 times)

Offline Anubis

  • Moderator
  • Sr. Member
  • *
  • Posts: 228
    • g4g.pl
Weapon Control Plugin - Antinoob v1.0.7
« on: January 20, 2009, 01:10:50 AM »
Hello,
some time ago I've decided to make some extensions for this plugin to have the possibility to configure all I want, or I (or you) could want to configure.
In the current version you are able to configure:
- different 'blocking time duration' for specific maps
- block the weapon permenently
- block any weapon you want

Here's the config:
Code: xml [Select]
<configuration plugin="antinoob">
<settings name="settings">
<set name="warn_duration">5</set>
<set name="warning_rule">rule2</set>
<set name="banned_warning_rule">rule2</set>
<set name="unlock_message">^3 %s seconds passed - ^3all weapons unlocked!!!</set>
<set name="info_message">^3 No nades, airstrike, tubes or heli ^5first %s seconds of the round!!!</set>
<set name="bannedonly_info_message">^3 Please, No marty/last stand, GL's or RPG's !!!</set>
</settings>
<!-- <maps>
<map name="mp_citystreets">15</map>
</maps> -->

<weapon_timed_warn>
<weapon mod="MOD_GRENADE_SPLASH"></weapon>
</weapon_timed_warn>
<!--
<weapon_timed_kick>
</weapon_timed_kick>
<weapon_banned_kick>
</weapon_banned_kick> -->
<weapon_banned_warn>
<weapon mod="MOD_FALLING"></weapon>
<weapon mod="">frag_grenade_short_mp</weapon>
<weapon mod="">gl_ak47_mp</weapon>
<weapon mod="">gl_g3_mp</weapon>
<weapon mod="">gl_g36c_mp</weapon>
<weapon mod="">gl_m4_mp</weapon>
<weapon mod="">gl_m14_mp</weapon>
<weapon mod="">gl_m16_mp</weapon>
<weapon mod="">gl_mp</weapon>
<weapon mod="">rpg_mp</weapon>
</weapon_banned_warn>
</configuration>



warn_duration - it's a default for all maps within ppl will be warned for using defined weapons
warning_rule - defined rule which will be used to warn a player
unlock_message - message announcing unlocking weapons - MUST CONTAIN %s which will be replaced by number of seconds
info_message - message informing about duration of weapons restriction  - MUST CONTAIN %s which will be replaced by number of seconds

If for the specific map time should be longer then use <maps> section to define it.
<weapons> - here we can define resticted weapons
perm = "0" or "1" - of perm="1" - weapon will be restricted all the time, undependent on the defined time. I know many of you want to restrict Martyr.

>>> Download <<<


have pHun

Edit Bakes:

for earlier versions of the plugin:

sure:

1.0.3:
http://anoobis.republika.pl/b3/antinoob/1.0.3/antinoob.zip

1.0.4:
http://anoobis.republika.pl/b3/antinoob/1.0.4/antinoob.zip

1.0.5:
http://anoobis.republika.pl/b3/antinoob/1.0.5/antinoob.zip


1.0.7:
http://anoobis.republika.pl/b3/antinoob/1.0.7/antinoob.zip

Melroy has kindly bugfixed version 1.0.7. It is now known as 1.0.8 and is the current download
« Last Edit: December 11, 2009, 08:46:07 AM by Bakes »

Offline Plastikman

  • Full Member
  • ***
  • Posts: 53
    • XPServers
Re: Weapon Control Plugin - Antinoob v1.0.3
« Reply #1 on: January 21, 2009, 05:23:49 AM »
is this for COD4 ?

do you have an install guide ,  sorry for the nub question

Offline Anubis

  • Moderator
  • Sr. Member
  • *
  • Posts: 228
    • g4g.pl
Re: Weapon Control Plugin - Antinoob v1.0.3
« Reply #2 on: January 21, 2009, 08:59:14 AM »
HI,
yes, it's for COD4. install guide? Welll it's standard:
- copy PY file into plugins directory
- copy XML file into b3/extplugins/conf
- at b3.xml file at    <plugins> section add:
 <plugin name="antinoob" priority="9" config="@b3/extplugins/conf/plugin_antinoob.xml"/>
and update priority number.

Offline Plastikman

  • Full Member
  • ***
  • Posts: 53
    • XPServers
Re: Weapon Control Plugin - Antinoob v1.0.3
« Reply #3 on: January 21, 2009, 02:51:09 PM »
Thank you very much,  been waiting a while for this plugin.

excellent work !

Offline Plastikman

  • Full Member
  • ***
  • Posts: 53
    • XPServers
Re: Weapon Control Plugin - Antinoob v1.0.3
« Reply #4 on: January 22, 2009, 09:54:54 PM »
Does this just warn the user or does it actually ban them ?

As soon as I ran the plugin the server banned 10 people for airstrikes
« Last Edit: January 22, 2009, 10:00:43 PM by XPServers.Net »

Offline Anubis

  • Moderator
  • Sr. Member
  • *
  • Posts: 228
    • g4g.pl
Re: Weapon Control Plugin - Antinoob v1.0.3
« Reply #5 on: January 22, 2009, 11:54:51 PM »
well... it's standard b3 behavior. B3 warns ppl but if the number of warns reaches the limit (see plugin_admin.xml - <set name="kick_num">5</set>) then player is banned.

Offline Plastikman

  • Full Member
  • ***
  • Posts: 53
    • XPServers
Re: Weapon Control Plugin - Antinoob v1.0.3
« Reply #6 on: January 23, 2009, 06:37:32 AM »
sorry to say but this plugin has some bugs.

It will warn you twice then ban you for 2 hours.  I set warning threshold to 14 before banning and 8 for kick.  Just seems not to work.
 
***I tested this with my own account and I got banned from my server.  I would love to know how I can unban myself without of course using the !unban command cause i cant get into my server.  I tried editing the database and restarting B3 but didnt work***


Here is my config incase I missed something

============================

<configuration plugin="antinoob">
    <settings name="settings">
        <set name="warn_duration">800</set>
        <set name="warning_rule">rule10</set>
        <set name="unlock_message">^3 %s second passed - all weapons unlocked!!!</set>
        <set name="info_message">^3 In the first %s seconds ^1NO Marty or Tubes allowed!!!</set>
    </settings>
    <maps>
        <map name="mp_citystreets">15</map>
    </maps>   
    <weapons>
        <!-- Tubes -->
        <weapon perm="0">gl_ak47_mp</weapon>
        <weapon perm="0">gl_g3_mp</weapon>
        <weapon perm="0">gl_g36c_mp</weapon>
        <weapon perm="0">gl_m4_mp</weapon>
        <weapon perm="0">gl_m14_mp</weapon>
        <weapon perm="0">gl_m16_mp</weapon>
        <weapon perm="0">gl_mp</weapon>       
        <!-- Nades -->   
        <!-- <weapon perm="0">frag_grenade_mp</weapon> -->
        <!-- Airstike -->
        <!--<weapon perm="0">artillery_mp</weapon> -->
        <!-- Heli -->       
        <!-- <weapon perm="0">helicopter_mp</weapon> -->   
        <!-- Martyr -->
        <weapon perm="0">frag_grenade_short_mp</weapon>
    </weapons>
</configuration>

======================================

plugin_config.xml

<settings name="warn">
      <set name="ban_reason">^7too many warnings ^1BANNED: $reason</set>
      <set name="ban_num">14</set>
      <set name="kick_num">8</set>
      <set name="kick_duration">2</set>
      <set name="ban_duration">1h</set>
      <set name="kick_reason">^7too many warnings: $reason</set>

      <set name="alert_kick_num">3</set>
      <set name="instant_kick_num">5</set>
      <set name="tempban_num">6</set>
      <set name="tempban_duration">1d</set>
      <set name="max_duration">1d</set>
      <set name="message">^1WARNING^7 (^3$warnings^7): $reason</set>
      <set name="warn_delay">15</set>
      <set name="reason">^7too many warnings: $reason</set>
      <set name="duration_divider">30</set>
      <set name="alert">^1ALERT^7: $name^7 auto-kick from warnings if not cleared (^3$warnings^7) $reason</set>
   </settings>
« Last Edit: January 23, 2009, 07:22:56 AM by XPServers.Net »

Offline Anubis

  • Moderator
  • Sr. Member
  • *
  • Posts: 228
    • g4g.pl
Re: Weapon Control Plugin - Antinoob v1.0.3
« Reply #7 on: January 23, 2009, 09:41:22 AM »
Did they had some active  bans already? Could you check it at echelon plz?

p.s. When you look at the pluign source, you will see that it only warns players.

Offline Plastikman

  • Full Member
  • ***
  • Posts: 53
    • XPServers
Re: Weapon Control Plugin - Antinoob v1.0.3
« Reply #8 on: January 23, 2009, 04:28:08 PM »
ahh looks to be working now that i updated B3 to the newest version

thanks

Offline FatBastard

  • Jr. Member
  • **
  • Posts: 30
Re: Weapon Control Plugin - Antinoob v1.0.3
« Reply #9 on: January 25, 2009, 02:10:36 AM »
Can I use this to just restrict certain weapons (Sniper Class Only server) all the time?

Is there an easy place to get all the weapon codes?

unlock_message - I don't want to ever unlock weapons. Do I have to use this feature? And if not, how do I disable it?

Wait, I think I got it. If perm=1 then the weapon is permanently not allowed? If the weapon isn't listed, does that mean it is allowed?


Offline Bakes

  • B3 Contrib/Support
  • Hero Member
  • *
  • Posts: 1226
Re: Weapon Control Plugin - Antinoob v1.0.3
« Reply #10 on: January 25, 2009, 11:21:32 AM »
yes, that's right, and if perm = 0, it will be allowed after the time limit.

Anubis might have included some checks for if there are no timer-disallowed weapons, to disable the timer, but I'm not sure.

weapon lists, hmmm, the easiest way is to open up
iw_14.iwd\weapons\mp in CoD:WaW
iw_13.iwd\weapons\mp in CoD2
iw_11.iwd\weapons\mp in CoD4
and i'm not sure if the weapons in urt distinguish between laserdot, camo, etc, but I found them in here:
zpak000_assets.pk3\models\weapons2\

Offline FatBastard

  • Jr. Member
  • **
  • Posts: 30
Re: Weapon Control Plugin - Antinoob v1.0.3
« Reply #11 on: January 25, 2009, 08:34:06 PM »
Nice, thanks.

Looks like it's up and working. I have a few specific questions still.

Is there any way to find out why they are getting kicked? Can that be included in the warn message? Someone got kicked and I could't find anything in the console that could have led up to it.

I wanted warning violations to go straight to kick for 0sec, so they can fix their weapons and come right back in. And maybe ban after 6 violations. Where can I find these areas to edit?
« Last Edit: January 25, 2009, 08:39:35 PM by FatBastard »

Offline Anubis

  • Moderator
  • Sr. Member
  • *
  • Posts: 228
    • g4g.pl
Re: Weapon Control Plugin - Antinoob v1.0.3
« Reply #12 on: January 25, 2009, 09:28:36 PM »
Hello,
To have specific warning message just preapre some warning rule at plugin_admin.xml and put it at plugin_antinoob.xml at:
Code: [Select]
        <set name="warning_rule">rule10</set>

Currently there is no way just to kick player without warning. For now you can change it at plugin source:
Code: [Select]
                        self._adminPlugin.warnClient(event.client, self._warningrule , None, False)

I think I need to extend my plugin for the kick feature ;) Stay tuned...


Offline FatBastard

  • Jr. Member
  • **
  • Posts: 30
Re: Weapon Control Plugin - Antinoob v1.0.3
« Reply #13 on: January 25, 2009, 10:02:03 PM »
This is a godsend.

The warnings can be a little spammy. But in most cases, the jerks that are ignoring the rules, do not even get a clue with the warning. Our moto is "They can read the rules on the way back in." We used to manually kick with reason and set a time of 0sec. I guess that is the key right there, Kick instead of Ban/Temp Ban.

I still cannot figure out where the durations can be edited.

Offline Anubis

  • Moderator
  • Sr. Member
  • *
  • Posts: 228
    • g4g.pl
Re: Weapon Control Plugin - Antinoob v1.0.3
« Reply #14 on: January 25, 2009, 11:01:56 PM »
I still cannot figure out where the durations can be edited.

Well. It's quite simple at plugin_admin at
Code: [Select]
	<settings name="spamages">

just add some rule, for example:
Code: [Select]
		<set name="rule10">^3#10: No nades in first 10 seconds!!!!</set>

then at:
Code: [Select]
	<settings name="warn_reasons">
just put this:
Code: [Select]
		<set name="rule10">3d, /spam#rule10</set>

Which means that duration of this warning is 3 days. If the player reaches max number of warnings then it will be banned for the defined time (plugin_admin.xml):
Code: [Select]
		<set name="tempban_duration">5h</set>

Currently there is no way to define explicit ban duration at this plugin. It uses standard tempban duration mentioned above.

regards

 


Rate this page +1 at Google Search