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 ]

You are here: Big Brother Bot ForumAdd-OnsPlugins DiscussionPlugins by Anubis (Moderator: Anubis)Weapon Control Plugin - Antinoob v1.0.7
Pages: [1] 2 3 ... 28   Go Down
  Print  
Author Topic: Weapon Control Plugin - Antinoob v1.0.7  (Read 55785 times) Bookmark and Share
Moderator
*
OS: Linux
Type: Owner dedicated server(s)
Gameservers: COD4
Posts: 228
Offline Offline
WWW
« on: January 19, 2009, 04:10:50 PM »

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


5
rule2
rule2
^3 %s seconds passed - ^3all weapons unlocked!!!
^3 No nades, airstrike, tubes or heli ^5first %s seconds of the round!!!
^3 Please, No marty/last stand, GL's or RPG's !!!









frag_grenade_short_mp
gl_ak47_mp
gl_g3_mp
gl_g36c_mp
gl_m4_mp
gl_m14_mp
gl_m16_mp
gl_mp
rpg_mp




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 10, 2009, 11:46:07 PM by Bakes » Logged


Full Member
***
Posts: 53
Offline Offline
WWW
« Reply #1 on: January 20, 2009, 08:23:49 PM »

is this for COD4 ?

do you have an install guide ,  sorry for the nub question
Logged
Moderator
*
OS: Linux
Type: Owner dedicated server(s)
Gameservers: COD4
Posts: 228
Offline Offline
WWW
« Reply #2 on: January 20, 2009, 11:59:14 PM »

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.
Logged

Full Member
***
Posts: 53
Offline Offline
WWW
« Reply #3 on: January 21, 2009, 05:51:09 AM »

Thank you very much,  been waiting a while for this plugin.

excellent work !
Logged
Full Member
***
Posts: 53
Offline Offline
WWW
« Reply #4 on: January 22, 2009, 12: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, 01:00:43 PM by XPServers.Net » Logged
Moderator
*
OS: Linux
Type: Owner dedicated server(s)
Gameservers: COD4
Posts: 228
Offline Offline
WWW
« Reply #5 on: January 22, 2009, 02: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.
Logged

Full Member
***
Posts: 53
Offline Offline
WWW
« Reply #6 on: January 22, 2009, 09:37:32 PM »

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 22, 2009, 10:22:56 PM by XPServers.Net » Logged
Moderator
*
OS: Linux
Type: Owner dedicated server(s)
Gameservers: COD4
Posts: 228
Offline Offline
WWW
« Reply #7 on: January 23, 2009, 12: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.
Logged

Full Member
***
Posts: 53
Offline Offline
WWW
« Reply #8 on: January 23, 2009, 07:28:08 AM »

ahh looks to be working now that i updated B3 to the newest version

thanks
Logged
Jr. Member
**
Posts: 30
Offline Offline
« Reply #9 on: January 24, 2009, 05:10:36 PM »

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?

Logged
B3 Contrib/Support
*
OS: --No B3 installed--
Type: --No B3 installed--
Posts: 1225
Offline Offline
Support Specialty: B3-Core, CoD/BFBC2 parsers, FTP-functionality, Plugin development
« Reply #10 on: January 25, 2009, 02: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\
Logged

Jr. Member
**
Posts: 30
Offline Offline
« Reply #11 on: January 25, 2009, 11:34:06 AM »

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, 11:39:35 AM by FatBastard » Logged
Moderator
*
OS: Linux
Type: Owner dedicated server(s)
Gameservers: COD4
Posts: 228
Offline Offline
WWW
« Reply #12 on: January 25, 2009, 12: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:
        <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:
                        self._adminPlugin.warnClient(event.client, self._warningrule , None, False)

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

Logged

Jr. Member
**
Posts: 30
Offline Offline
« Reply #13 on: January 25, 2009, 01: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.
Logged
Moderator
*
OS: Linux
Type: Owner dedicated server(s)
Gameservers: COD4
Posts: 228
Offline Offline
WWW
« Reply #14 on: January 25, 2009, 02:01:56 PM »

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

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

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

then at:
Code:
<settings name="warn_reasons">
just put this:
Code:
<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:
<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
Logged

Tags: martydom 
Pages: [1] 2 3 ... 28   Go Up
  Print  
 
Jump to:  


Rate this page +1 at Google Search


SimplePortal 2.3.1 © 2008-2009, SimplePortal