[forums.alliedmods.net] Hl2dm CU Public G...
Adminek AMXX.PL
10.03.2012
As you saw in the Title this plugin was design mainly for the use in the Clans United Hl2dm League.
Also this Plugin needs a Resource File to work which i found here in this Forum:
http://forums.allied...ead.php?t=96831
Thanks to the Author for the nice Colour Management
{
"Configs"
{
"name u wanna write in chat" "name of the config"
"cu2v2" "cu2v2.cfg"
"cu1v1" "cu1v1.cfg"
}
}
{
"Maps"
{
"Chat command name" "real map name"
"aimarena" "aim_arena_reloaded"
"aa" "aim_arena_reloaded"
}
}
#.# restart: Restarts the map
(admin authorisation possible/deaktivation possible)
#.# cm <mapname>: changes the map to <mapname>(admin authorisation possible/deaktivation possible)
#.# pw or #.# password: Displayes the Server-Password to the player
#.# teamplay 1/0: 1 enables Team-Deathmatch 0 enables Deathmatch (after Mapchange)
(admin authorisation possible/deaktivation possible)
#.# coinflip: Makes the executing Player Coinflipplayer
#.# help: Shows the available Commands to the Player
// -
// Default: "0"
sm_authorisation_enabled "0"
// Chat Command prefix
// -
// Default: "#.#"
sm_chat_command_prefix "#.#"
// Enables #.# cm
// -
// Default: "0"
sm_cm_enabled "1"
// Enables #.# restart
// -
// Default: "0"
sm_restart_enabled "1"
// Enables #.# start
// -
// Default: "0"
sm_start_enabled "1"
// Enables #.# teamplay
// -
// Default: "0"
sm_teamplay_switchable "1"
I know this isnt the best and cleanest sourcecode you have ever seen
but i m open for suggestion and for my first contact with the Sourcemod API not bad i think
Also if u have something u wanna have changed or added in this plugin dont hesitate to contact me
Known Bugs:
due to the different Chat-System from the colors.inc this Output is not recorded by the sourceTV demos
* Initial release.
Attached Files
Get Plugin or Get Source (Serverplugin.sp - 15.2 KB)
colors.inc (11.9 KB)
Configs.cfg (87 Bytes)
Maps.cfg (3.5 KB)
Serverplugin.smx (12.3 KB)
Wyświetl pełny artykuł
Also this Plugin needs a Resource File to work which i found here in this Forum:
http://forums.allied...ead.php?t=96831
Thanks to the Author for the nice Colour Management
- Feature list
- For every Chat command is a prefix needed which u can adjust over a cvar listed at the Cvar Section (Default is #.#)
- for several commands there is a Cvar where u can either disable it or enable a admin check(admin Check requires Root or Config Flag)
- All Configs u wanna start from the Chat must be writen in a File named Configs.cfg in the /sourcemod/configs/ folder in this Format:
{
"Configs"
{
"name u wanna write in chat" "name of the config"
"cu2v2" "cu2v2.cfg"
"cu1v1" "cu1v1.cfg"
}
}
- every Map u wanna change with the Chat command must be listed in a File named Maps.cfg in the /sourcemod/configs/ folder in this Format:
{
"Maps"
{
"Chat command name" "real map name"
"aimarena" "aim_arena_reloaded"
"aa" "aim_arena_reloaded"
}
}
- CVAR/Command list
- Commands
#.# restart: Restarts the map
(admin authorisation possible/deaktivation possible)
#.# cm <mapname>: changes the map to <mapname>(admin authorisation possible/deaktivation possible)
#.# pw or #.# password: Displayes the Server-Password to the player
#.# teamplay 1/0: 1 enables Team-Deathmatch 0 enables Deathmatch (after Mapchange)
(admin authorisation possible/deaktivation possible)
#.# coinflip: Makes the executing Player Coinflipplayer
#.# help: Shows the available Commands to the Player
- Cvars: You can edit the automaticly generated config in the hl2mp/cfg/sourcemod/ folder
// -
// Default: "0"
sm_authorisation_enabled "0"
// Chat Command prefix
// -
// Default: "#.#"
sm_chat_command_prefix "#.#"
// Enables #.# cm
// -
// Default: "0"
sm_cm_enabled "1"
// Enables #.# restart
// -
// Default: "0"
sm_restart_enabled "1"
// Enables #.# start
// -
// Default: "0"
sm_start_enabled "1"
// Enables #.# teamplay
// -
// Default: "0"
sm_teamplay_switchable "1"
I know this isnt the best and cleanest sourcecode you have ever seen

Also if u have something u wanna have changed or added in this plugin dont hesitate to contact me
Known Bugs:
due to the different Chat-System from the colors.inc this Output is not recorded by the sourceTV demos
- Changelog
* Initial release.
Attached Files





Wyświetl pełny artykuł