This is just a quick description of what the plugin can do and how to use it.
1 - Installation:
Copy the plugin binary to your src dedicated server bin folder
(In my case it is ~/games/hl2/bin).
Create a folter named addons on your moddir (~/games/hl2/cstrike/addons)
and copy the enclosed serverplugin_mosca.vdf there.
Restart the server.
2 - Configuring reserved slots by ip
Just create a file named ip.ini in your mod cfg folder
(~/games/hl2/cstrike/cfg/ips.ini)
And add addresses there, one per line.
Both ip.address and ip.address/netmask are supported.
Ex.:
192.168.0.0/255.255.255.0
10.10.1.123
3 - Adding admins
Create a file named admins.ini in you mod cfg dir and add lines linke this:
STEAMID;LVL
Where LVL is the sum of privileges an admin have.
ADMIN_SAY 1
ADMIN_KICK 2
ADMIN_BAN 4
ADMIN_RESERVED 8 // Gives this steamid a reserved slot
So for full admin access LVL should be 7, for kick and say only that would be 3
4 - Client Commands implemented
admin_kick <player name>
admin_kickid <slotid or steamid>
admin_ban <slotid or steamid> <time in minutes, defaults to 0>
admin_say <msg>
admin_slay #<slotid>
5 - Server Commands and CVars
mosca_version -- Prints the plugin versin
reserved_reload -- reloads ips.ini
reserved_print -- prints the current loaded ips.ini
admin_print -- print the current loaded admins and their levels.
reserved_slots -- The number of reserved slots
reserved_msg -- Msg shown to clients when there are no more public slots.
reserved_welcome -- Msg shown to clients when they are granted access to a
public slot.
admin_slay_sound -- Sound played when you slay a player
admin_slay_volume -- Volume of the sound.
admins_ini_file -- Name of file with admin list, relative do moddir
ips_ini_file -- Name of file with reserved ip list, relative do moddir
6 - Author and Contact
Marcelo Bezerra <
[email protected]>
7 - Updated Versions
http://mosca.yi.org/~mosca/serverplugin_mosca/