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!

Pages: [1] 2   Go Down
  Print  
Author Topic: PowerAdmin [CoD2]  (Read 12775 times) Bookmark and Share
[ www.xlrstats.com ]
Project Lead
*
OS: Linux
Type: Owner dedicated server(s)
Gameservers: CoD, CoD2, CoD5, UrT
Posts: 2007
Offline Offline
WWW
Support Specialty: B3-Core, CoD/UrT/WoP/ETPro parsers, Plugin development
« on: September 19, 2006, 12:43:08 PM »



PowerAdmin is an extensive admin addition for Call of Duty2. It comes with a game-mod that enables you to fully control your playercrowd. Rename players, punish them, force them to a team or spectate, it even adds mercy limit, spawn protection and some realism features. If you don't want to install the mod, you can still use PowerAdmin to expand your admin capabilities.

Quote
###################################################################################
#
# PowerAdmin
# Plugin for B3 (www.bigbrotherbot.com)
# (c) 2006 www.xlr8or.com (mailto:xlr8or@xlr8or.com)
#
# This program is free software and licensed under the terms of
# the GNU General Public License (GPL), version 2.
#
# http://www.gnu.org/copyleft/gpl.html
###################################################################################

PowerAdmin (v1.3.0) for B3
###################################################################################

This plugin works for CoD2 only! This plugin adds powerfull commands to your b3:

wihout any serverside tools:
!pamapresart - Restart current map
!paset <cvar> - Set a server cvar
!paget <cvar> - Read a cvar from the server
!paexec <configfile.cfg> - Execute a server configfile

With Ravir or bullet Worm's powerserver and no poweradmin CoD2 mod:
All previous commands plus:
!paswitch <name> [<reason>]- switch a player to the other team
!paswitchall - switch all players
!paforcespec <name> [<reason>]- switch a player to spectator
!pakillplayer <name> [<reason>]- kill a player

With aditional poweradmin CoD2 mod (included in package):
All previous commands plus:
!paforceallspec - force all players to spectator
!paforce - Force a player to allies, axis or spectator (slightly diff from switch)
!palosepoint - Make a player lose a scorepoint
!pacompensate - Compensate a player, add 1 scorepoint, reduce deaths by 1
!pascore - Alter a players score, add or deduct an amount of points
!padeaths - Alter a players deaths, add or deduct an amount
!pasaybold <message> - Print a Bold message on the center of all screens.
!paendmap - end the map gracefully with scorescreen
!parename <player> <newname> - Force a clients Name
!paexplode <player> [<reason>] - Blow the player up.
!paburn <player> [<reason>] - Set a player on fire and kill him.
!pashock <player> [<duration>] - Shock a player (shellshock).
Finally there are 2 by default disabled commands, these commands are very powerfull
and need manual leveling in the plugin configfile
!paenforce - Enforce any dvar clientside!
!paretaliate - Make it impossible for a player to play untill he performs a manual
                disconnect and game-restart!

Each command can be leveled in the config file.


Requirements:
###################################################################################

- Call of Duty 2 server
- B3 version 1.1.0 or higher


Installation of the B3 plugin:
###################################################################################

To install the b3-plugin part:

1. Unzip the contents of this package. Go to the unzipped folder extplugins and
place the .py file in the bots folder b3/extplugins and the config file .xml in
the b3/extplugins/conf folder.

2. Open the .xml file with your favorit editor and modify the
levels if you want them different. Do not edit the command-names
for they will not function under a different name.

3. Open your B3.xml file (in b3/conf) and add the next line in the
<plugins> section of the file:

<plugin name="poweradmin" priority="13" config="@b3/extplugins/conf/poweradmin.xml"/>

The numer 13 in this just an example. Make sure it fits your
plugin list.


Installation of the CoD2 mod:
###################################################################################

To install the CoD2 mod there are several possibilities depending on the state of
your CoD2 server. The standalone poweradmin mod for CoD2 INTERFERES with other mods
like bulletworm's powerserver mod or AWE.

First check out b3.cfg. It's an example config telling you which cvars to use in your
server configfile. Or you may ofcourse add a line in your server config like:
exec b3.cfg (before map_rotate!)

So if your CoD2 server is stock version 1.3 you can just put the
zzzz_b3_svr_pwradm-stndlone-v#.#.#.iwd file inside your CoD2/main folder (or unzip it
in your fs_game folder) and restart the server.
DONE...

If you use AWE here's what to do:
1. Go to your CoD2/awe/ folder (this is your fs_game folder)
2. Unpack b3_parts_awe-v#.#.#.zip with a program like winzip into the fs_game folder
   So a new folder called b3 and its content exist.
3. Open awe/_global.gsc with a text-editor and add the next line
   in the init() part below the list that starts with "// Init Stuff":
     b3\_b3_main::Init();
4. Restart the server for the changes to take effect
DONE...

If you use bullet worm's powerserver or any other mod here's what to do:
1. unpack the serverside part of the mod into an fs_game folder
   in your CoD2 gameserver structure. If you don't know how to set this up
   go here and read this carefully:
   http://www.iwnation.com/Forums/index.ph … opic=16371
2. Unpack b3_parts_generic-v#.#.#.zip with a program like winzip into the fs_game folder
   So a new folder called b3 and its content exist.
3. Open _b3_poweradmin.gsc with a texteditor and read the instructions in the
   StartThreads() and _b3_endmap() functions. All editing points start with !EDIT!
   so you can use a searchfunction to not miss them.
4. Open each gametype script in maps\mp\gametypes\ (eg. ctf.gsc, tdm.gsc etc.)
   and add in main() (just before level.autoassign = ::menuAutoAssign;) the next line:
     thread b3\_b3_main::Init();
5. Restart the server for the changes to take effect
DONE...

Musicfunction: If you wan to use the musicfunction in the mod you have to put a small
clientfile available for download to the clients. b3_music1.3.0.iwd is to be located
in you main folder or preferably in your fs_game folder. The file is only 5kB and
it wont take long to download, neither will it restrict a player from playing if he
doesn't have the file. I personally like it very much, it adds some drama to the game.

NOTE: Including this mod into other mods may cause unexpected behaviour. If your
installed mod already has spawnprotection I couldn't tell what happened if you
activated our spawnprotection aswell. I can and will not support those issues.
Including our mod into an existing mod is your own decision and I strongly advise
against you doing this when you're not familiar with these kinds of actions.

(The mod was tested on a Dedicated CoD2 version 1.3 Linux distro in combination with
AWE 3.0 beta 9.)


Changelog
###################################################################################
v1.0.0         : Initial release
v1.0.0 - v1.0.1: patched player.id to player.cid
v1.0.1 - v1.1.0: Added servermod with new functions and AWE compatibility.
v1.1.0 - v1.2.0: New filestructure, tools and goodies.
v1.2.0 - v1.3.0: A code update and new additions


###################################################################################
xlr8or - 11 aug. 2006 - www.bigbrotherbot.com // www.xlr8or.com

Download the latest version here: ftp://ftp.snt.utwente.nl/pub/games/bigbrotherbot/plugins/poweradmin-v1.3.0.zip

Dev. version: http://github.com/xlr8or/b3-plugin-poweradmin/zipball/master
« Last Edit: November 12, 2010, 11:20:48 AM by xlr8or » Logged


Full Member
***
Posts: 54
Offline Offline
« Reply #1 on: December 27, 2007, 11:14:40 PM »


 Anyone got this working with COD4 yet?

 Thanks
Logged
[ www.xlrstats.com ]
Project Lead
*
OS: Linux
Type: Owner dedicated server(s)
Gameservers: CoD, CoD2, CoD5, UrT
Posts: 2007
Offline Offline
WWW
Support Specialty: B3-Core, CoD/UrT/WoP/ETPro parsers, Plugin development
« Reply #2 on: December 28, 2007, 08:38:02 AM »

It will work for only a few commands... probably:

!pamapresart - Restart current map
!paset <cvar> - Set a server dvar
!paget <cvar> - Read a dvar from the server
!paexec <configfile.cfg> - Execute a server configfile

I will not be making a mod for this game. Maybe a poweradmin for CoD4 will be made once B3 v2 is out, but it will probably only have a few commands that translate to standard rcon commands CoD4 supports.
Logged

Jr. Member
**
Posts: 12
Offline Offline
« Reply #3 on: September 26, 2008, 04:29:25 PM »

Code:
!paexec <configfile.cfg> - Execute a server configfile

I need a way to exec a config file...

PowerAdmin is for CoD 2 only.

Xlr says it will work in CoD4.. few command only and one of the commands I want is right there.

Is there a difference in the stall etc .. for CoD4? Is there a better way to run a config file from B3?
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 #4 on: September 26, 2008, 10:03:59 PM »

The cod4 poweradmin maybe?
But yes, the command that you want works.
Logged

[ www.xlrstats.com ]
Project Lead
*
OS: Linux
Type: Owner dedicated server(s)
Gameservers: CoD, CoD2, CoD5, UrT
Posts: 2007
Offline Offline
WWW
Support Specialty: B3-Core, CoD/UrT/WoP/ETPro parsers, Plugin development
« Reply #5 on: September 27, 2008, 01:25:25 AM »

Without installing the server side mods it makes no difference if you use this version or the cod4 poweradmin version, they are the same in these basic things...
Logged

Newbie
*
Posts: 8
Offline Offline
« Reply #6 on: January 17, 2009, 07:23:53 AM »

does Power Admin work for the new b3 updated version? i cant seem to get mine to work
Logged
[ www.xlrstats.com ]
Project Lead
*
OS: Linux
Type: Owner dedicated server(s)
Gameservers: CoD, CoD2, CoD5, UrT
Posts: 2007
Offline Offline
WWW
Support Specialty: B3-Core, CoD/UrT/WoP/ETPro parsers, Plugin development
« Reply #7 on: January 17, 2009, 09:32:33 AM »

Yes, it should work for all versions B3 v1.+.

But you know there is a mod that needs to be installed in the CoD2 server, right?
Logged

Newbie
*
Posts: 8
Offline Offline
« Reply #8 on: January 18, 2009, 06:49:55 AM »

which mod?
Logged
[ www.xlrstats.com ]
Project Lead
*
OS: Linux
Type: Owner dedicated server(s)
Gameservers: CoD, CoD2, CoD5, UrT
Posts: 2007
Offline Offline
WWW
Support Specialty: B3-Core, CoD/UrT/WoP/ETPro parsers, Plugin development
« Reply #9 on: January 18, 2009, 09:51:25 AM »

Its in the package... Please read the readme.txt
Logged

Newbie
*
Posts: 1
Offline Offline
« Reply #10 on: January 03, 2010, 02:34:56 AM »

Is it possible to set it up with All Rifles Only mod? I'm struggling to get it working. It seems to work with Search and Destroy, but not with Deathmatch  Angry
Logged
[ www.xlrstats.com ]
Project Lead
*
OS: Linux
Type: Owner dedicated server(s)
Gameservers: CoD, CoD2, CoD5, UrT
Posts: 2007
Offline Offline
WWW
Support Specialty: B3-Core, CoD/UrT/WoP/ETPro parsers, Plugin development
« Reply #11 on: January 04, 2010, 11:06:37 AM »

Only these commands will work without the B3 mod:
Code:
<!-- 
The next commands do not need any serverside mods. Carefull, these control the core of your server
-->
<set name="pamaprestart-maprestart">60</set>
<set name="paset">100</set>
<set name="paget">100</set>
<set name="paexec">100</set>
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 #12 on: January 06, 2010, 03:09:32 PM »

I think you can piggyback the mod on top of the current mod, am I right? Just leave the b3 folder in the folder that your other mod is in (I guess it would be main?)

That's how it works in CoD4, anyway.
Logged

[ www.xlrstats.com ]
Project Lead
*
OS: Linux
Type: Owner dedicated server(s)
Gameservers: CoD, CoD2, CoD5, UrT
Posts: 2007
Offline Offline
WWW
Support Specialty: B3-Core, CoD/UrT/WoP/ETPro parsers, Plugin development
« Reply #13 on: January 07, 2010, 01:50:09 AM »

Nope, that doesn't work with the b3 mod. You'll need to know cod2 scripting to get this to work.

thread b3\_b3_main::Init(); must be inserted in the current mod to get the b3 part going.
Logged

Jr. Member
**
OS: Linux
Type: Owner dedicated server(s)
Gameservers: CoD, CoDUO, CoD2, CoD4, RO2, BF3, KF
Posts: 44
Offline Offline
WWW
« Reply #14 on: February 25, 2010, 10:24:14 AM »

anyway to implement this on CoD1 ? theres a bunch of ppl that still play old school thx
Logged

Tags:
Pages: [1] 2   Go Up
  Print  
 
Jump to:  


Rate this page +1 at Google Search


SimplePortal 2.3.1 © 2008-2009, SimplePortal