dein posting hat doch tatsächlich den anstoss gebracht, mein playermanagement plugin endlich mal fertig zu schreiben
wie es aussieht, hast du ja schon was, aber ich poste es trotzdem mal, kann nicht schaden
Code:
/******************** Plugin info **********************\
* *
* Name: plugin_bm_rindy_player *
* Author: Rinde (rinde@fiatnox.de) *
* Version: 1.0 RC1 *
* Released: 2004/04/05 *
* *
* Requirements: *
* o Half-Life dedicated or listen-server *
* o Admin-Mod version: 2.50.50 *
* o plugin_base_menu installed *
* o Include files: *
* - menu.inc *
* - rindy.inc *
* - checksetting.inc *
* - rindy_player_helper.inc *
* - rindy_player_infos.inc *
* - rindy_player_menus.inc *
* o Settings: *
* - amv_enable_beta "menu1" *
* - file_access_read "1" *
* - file_access_write "1" *
* - A valid vault-file *
* o Configuration files: *
* - admins.ini *
* - reasons.ini *
* *
********************* Description ***********************
* *
* Features: *
* o A comfortable menu to choose player and punishment *
* o Several grades of punishment, including warn, *
* slap, slay, kick and ban *
* o Allows to give a reason with every punishment *
* o Reasons are selectable through menues as well *
* o Logging of usage into a seperate file *
* o Own access right management to allow more flexible *
* rights *
* o Two levels of admin immunity *
* o Visualization of the userstatus in menu *
* o Stores data of players after they left the server *
* o Banning players after they left by menu *
* o Notification if some previously warned/kicked *
* player rejoins with a different nickname *
* o Support for Steam and LAN servers *
* *
* Installation: *
* 1. Place the files "plugin_bm_rindy_player.sma" and *
* "plugin_base_menu" in the "scripting/myscripts"- *
* directory of your copy of Adminmod. Place the *
* files "menu.inc", "rindy.inc", "checksetting.inc",*
* "rindy_player_helper.inc", *
* "rindy_player_menus.inc" and *
* "rindy_player_infos.inc" in the *
* "scripting/includes"-directory of your copy of *
* Adminmod. *
* 2. Execute the "compile_all.bat" (Win32) or *
* "compile_all.sh" (Linux) in the "myscripts"- *
* directory. *
* 3. Grab the compiled files "plugin_base_menu.amx" *
* and "plugin_bm_rindy_player.amx" from the *
* "scripting/mybinaries"-directory and copy them *
* into the "addons/adminmod/scripts"-directory of *
* your server. *
* 4. Open the file "addons/adminmod/config/plugin.ini" *
* on the gameserver with a text editor and add the *
* lines *
* addons/adminmod/scripts/plugin_base_menu.amx *
* addons/adminmod/scripts/plugin_bm_rindy_player.amx*
* to the bottom of the file. Save the changes. *
* 5. Open the file addons/adminmod/config/adminmod.cfg *
* on the gameserver and make sure to have set *
* file_access_read to "1", file_access_write to "1" *
* and amv_enable_beta to "menu1". *
* 6. Copy the files "admins.ini" and "reasons.ini" *
* shipped with this plugin to the directory *
* "addons/adminmod/config" of your gameserver. *
* 7. Set up the config files as described below. *
* 8. Change the map or restart your server to load *
* the plugin. *
* *
* Configuration files setup: *
* admins.ini: See comments in file for details *
* reasons.ini: Place one reason per line in the file. *
* All those reasons can be chosen from the menu. *
* The maximum linecount is 9, and no line may *
* exceed 29 characters in length. *
* *
* Vault settings: *
* Key: PLAYER_USERSFILE *
* Default: addons/adminmod/config/admins.ini *
* Description: The path to the users-file *
* Key: PLAYER_LOGFILE *
* Default: addons/adminmod/admin.log *
* Description: The path to the logfile *
* Key: PLAYER_REASONFILE *
* Default: addons/adminmod/config/reasons.ini *
* Description: The path to the reasons-file *
* Key: PLAYER_WARNED *
* Default: \r# *
* Description: Tag to be displayed for warned players *
* Key: PLAYER_KICKED *
* Default: \r*!* *
* Description: Tag to be displayed for kicked players *
* Key: PLAYER_MEMBER *
* Default: \y[] *
* Description: Tag to be displayed for users with *
* membertag-rights *
* Key: PLAYER_MOD *
* Default: \y@ *
* Description: Tag to be displayed for users with *
* moderator rights *
* Key: PLAYER_OP *
* Default: \r@ *
* Description: Tag to be displayed for users with *
* operator rights *
* *
* Commands: *
* o admin_playermenu: Displays the playermenu *
* o admin_warn <part of nick|#id|wonid> <reason>: *
* Warns the player whose nick/id/wonid was supplied. *
* Optionally include a reason. *
* o admin_slap <part of nick|#id|wonid> <reason> *
* Slaps the player whose nick/id/wonid was supplied. *
* Optionally include a reason. *
* o admin_slay <part of nick|#id|wonid> <reason> *
* Warns the player whose nick/id/wonid was supplied. *
* Optionally include a reason. *
* o admin_kick <part of nick|#id|wonid> <reason>: *
* Kicks the player whose nick/id/wonid was supplied. *
* Optionally include a reason. *
* o admin_ban <part of nick|#id|wonid> <time> <reason>:*
* Bans the player whose nick/id/wonid was supplied *
* for <time> minutes. 0 minutes is a permanent ban. *
* Optionally include a reason. *
* o admin_default_flags <flags>: Sets the default *
* access flags. (console only) *
* o admin_reload_users: Reloads the users file *
* (admins.ini). (console only) *
* *
\*******************************************************/