OldSchoolHack

Register / Login English

[MW3] Server Addons [Update 08.02.2012]

icon Thread: [MW3] Server Addons [Update 08.02.2012]

Join Date: Mar 2010

Posts: 220

Ingame RCON tool [Version 0.5.0]

Hey guys,
A few days ago I started coding a plugin for the MW3 server addon by Nukem (check the correct thread for more info) and am posting it here. This is my first plugin and very much a work in progress, so if you encounter any bugs or have any feature requests, please let me know.

If you encounter any bugs, please tell me what triggered it and if it always happens. Any 'Stupid plugin no work' posts will be ignored if they dont contain any proper info.
Bugs can also be reported on http://94.75.245.138/forum/viewtopic.php...=447#p4288
That thread also contains a mirror to the most up to date plugin

Current version: 0.5.0 BETA
Using the !warn command without a playername will crash the server, dont have time to fix it until tuesday, in the mean time don't issue warn without a playername *Runs off ashamed*

Current features:
-Kick by clientname or number
-Ban by clientname or number
-Yell (Say somethin on a players HUD)
-Playerinfo, Displays clientID, XUID, number of warnings, and name
-Basic permissions support
-Fast restart
-Warn and unwarn
-Kick on set warnings number
-Remember warnings on player disconnect
-Xuid command accesible for every user
-Addadmin command ingame
-Warning abbreviations, i.e. !warn player l will result in Bad Language
-Language filter
-Rcon command (i.e !rcon map mp_dome) (iAegle's idea )
-Tempban (currently uses the sv_kickbantime parameter in the config file, not variable :/)
-Ping commands added
-PM Support
-Rules support (can be set up in sv_config using the variable pmRules true to pm the rules, false to broadcast to the server)
-Help command
-Define which commands are accesible to users
-Time to live for warnings (can be defined in sv_config using the variable warningTTL = time in hours)
-Reload configs on the fly (except for usercommands atm, will ERASE all current warnings)

Todo:
-Player connect messages
-Customizable text
-Review all methods for potential crashes
-(maybe) Multiple usergroups
-Immunity
-Switch maplist
-Command Aliases
-Customizable warnings trigger (i.e You hacker! --> warned for whining about hacking)
(All custom map control features are on hold until i figure out a viable way to do it)

Usage:
!help - Shows this list
!kick [Playername] (reason) - Kicks a player with optional reason
!ban [Playername] - Bans the player permanently
!banc [clientnumber] - Same as ban but with clientnumber
!kickc [clientnumber] (reason) - Kicks a player with optional reason
!tmpban [playername] (reason) - Tempban a player, ength is the time in sv_config.ini
!pm [Playername] [message] - Pm's the player with [message]
!ping (playername) - Displays the ping of (playername) or you is no playername is given
!maxping - Displays the player with the highest ping
!minping - Displays the player with the lowest ping
!pi [Playername] - Displays the players name, xuid, warnings, and clientnumber
!yell [Playername or all] [Message] - Displays message on the players hud
!warn [Playername] (reason) - Warns a player
!unwarn [Playername] (reason) - Removes a player's warning
!ver - Displays this plugin's version
!xuid - Displays your player XUID
!rcon [Command] - Executes [command] in the console
!resetconf - Resets the configuration to the defaults
!rel - Reloads all configs
!addadmin [Playername] - Adds player to the admin group
!addword [Word] (word) (word) etc. - Adds the word(s) to the language filter
!fastrestart - Quickly restart the map
if permissions is used:
!addadmin (part of) playername

If language filter is used:
!addword [badword] [badword] etc.

Disabling permissions:
set usepermissions in sv_config.ini to false
Disabling language filter:
set uselangfilter in sv_config.ini to false
Setting the warnings until kick:
set kickwarnigns to the number you want
First time setup:
Add your own XUID and name to the admins file in the serveradmin folder
(format: [XUID] [Name])
run !resetconf
restart the server

Changelog per 20-01-2012:
Made !ping take optional [playername] parameter
Fixed the crashes pesaregoloo was having (Note to self: uncomment any code you want in the release i.e user input checks xD)
Set the default value of resetconf to false for langfilter and permissions
Added rules support
Added pm support
Added !help command
Added basic dynamic config reload
Added override for usercommands
Warnings now are cleared after a certain time

Changelog per 19-01-2012:
Added ping commands
Made warning reasons case-insensitive
Fixed !ver not working with disabled built-in permissions

Changelog per 18-01-2012:
Fixed a potential crash (error handling might be a good idea  )
Added tempban command
Kick command no longer tempbans players

Changelog per 17-01-2012:
Removed pass variable in sv_config.ini since it was unused
Added language filter
Added !rcon command
Made commands case insensitive
Warnings now also work if the OnPlayerConnect event is not passed

Changelog per 16-01-2012:
Added warnings, supports warning abbreviations such as l for language
Moved the textfiles to serveradmin folder
Fixed a potential permissions exploit that would allow ignoring admin permissions
Added a !ver command that displays the version of the plugin
Fixed crash when trying to add someone that already is an admin
Replaced !reg by addadmin, this is safer than a default password
Reads variables from the sv_config.ini file

The permissions plugin is meant as a temporary solution until Pozzuh gets his to work properly on linux

Virusscan result [Version 0.5.0 BETA]:

MD5: 34dec7c47bc25029aa0017017e16574a

http://www.abload.de/img/download_buttoncouux.png

Only registered and activated users can see links.


http://no-haking.square7.ch/images/wbb3-header-logo.png


__________________

http://no-haking.square7.ch/images/wbb3-header-logo.png