Raised This Month: $ Target: $400
 0% 

serverplugin_mosca - basic admin + reserved slots!


  
 
 
Thread Tools Display Modes
Author Message
imported_knoid
New Member
Join Date: Dec 2004
Old 12-16-2004 , 23:45   serverplugin_mosca - basic admin + reserved slots!
#1

http://mosca.yi.org/~mosca/serverplugin_mosca/

I didn't write this plugin but am posting this here as those of you not on the hlds mailing list are probably unaware of it. It's only got a few basic admin commands, but it has the ability to setup reserved slots by SteamID - which I haven't seen in any other plugin yet.

I didn't have any luck with the enclosed .vdf file, so I put the .dll in addons/mosca/dlls and added this line to my autoexec.cfg:

plugin_load cstrike/addons/mosca/dlls/serverplugin_mosca.dll

which worked a treat.

Everything else works as described in the readme.

I'm using this plugin alongside Beetlefart's plugin - I use this for reserved slots only, and beetlefart's plugin for admin.

From the readme:

Quote:
Originally Posted by Marcelo Bezerra <[email protected]>
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/
imported_knoid is offline
BigBaller
Veteran Member
Join Date: Mar 2004
Location: Everett, WA
Old 12-17-2004 , 01:12  
#2

but what if your on the HL mailing list omg?!!

hehe just kidding.

Maybe you should inform the author about sourcemod's website
BigBaller is offline
imported_Cyberz
Member
Join Date: Dec 2004
Old 12-17-2004 , 04:00  
#3

ya and tell him to make linux version ;)

[edit]
oh.. he has
imported_Cyberz is offline
imported_YoMama
Senior Member
Join Date: Oct 2004
Location: Amsterdam (Netherlands)
Old 12-17-2004 , 04:45   Re: serverplugin_mosca - basic admin + reserved slots!
#4

Quote:
Originally Posted by knoid
...I didn't have any luck with the enclosed .vdf file

...
That's because the enclosed vdf file is b0rked.

Open the file serverplugin_mosca.vdf

And replace the contents with:

Code:
"Plugin"
{
	"file"	"bin/serverplugin_mosca"
}
Or replace the file with the one below.

FYI: I got some errors in console, dunno if that's because I edited the .vdf...

Code:
Loaded mosca_plugin $Id: serverplugin_empty.cpp 45 2004-12-09 04:34:40Z mosca $Unknown command "port"
typing mosca_version in serverconsole gives:
Code:
Version: $Id: serverplugin_empty.cpp 45 2004-12-09 04:34:40Z mosca $
Attached Files
File Type: txt serverplugin_mosca.txt (50 Bytes, 323 views)
imported_YoMama is offline
Send a message via ICQ to imported_YoMama Send a message via MSN to imported_YoMama
imported_Cyberz
Member
Join Date: Dec 2004
Old 12-17-2004 , 04:54  
#5

ya i saw that too
hope he adds some more commands to admins


dos2unix ? not needed here..

[edit]
knoid: so full admin level And reserv slot is 15 ?

[edit2]
[t4d]Cyberz killed OERKEl with deagle.
Disconnect: Kicked by Console : Only Admin Slots Left!.
Disconnect: Kicked by Console : Only Admin Slots Left!.

i'am the damn admin...
imported_Cyberz is offline
imported_Cyberz
Member
Join Date: Dec 2004
Old 12-17-2004 , 07:22  
#6

Quote:
Thank you.
I'll soon release a new version.
I have been fighting with a bug in the reserved slot stuff related to messing up wich ip the user is coming from.
I suspect the bug is not in my code and am currently testing a work arround.

I am currently looking for time to implement admin_psay so I can use it on my tk prevention system I use for hlds. I have already updated it so it can send rcon commands to both hlds and srcds, but players on the src engine can't query their warning level.
I maild him earlyer, hop he gets in here..
imported_Cyberz is offline
BeetleFart
SourceMod Donor
Join Date: Apr 2004
Old 12-17-2004 , 07:42   Re: serverplugin_mosca - basic admin + reserved slots!
#7

Quote:
Originally Posted by knoid
I'm using this plugin alongside Beetlefart's plugin - I use this for reserved slots only, and beetlefart's plugin for admin.

I added reserved slot to mine, it will kick a non admin when ever its full
with the cvar reservedslot set to 1.
BeetleFart is offline
imported_Cyberz
Member
Join Date: Dec 2004
Old 12-17-2004 , 07:47   Re: serverplugin_mosca - basic admin + reserved slots!
#8

Quote:
Originally Posted by BeetleFart
Quote:
Originally Posted by knoid
I'm using this plugin alongside Beetlefart's plugin - I use this for reserved slots only, and beetlefart's plugin for admin.

I added reserved slot to mine, it will kick a non admin when ever its full
with the cvar reservedslot set to 1.
yes i saw that, but he has an extra slots reserverd so nobody gets kicked..
imported_Cyberz is offline
BeetleFart
SourceMod Donor
Join Date: Apr 2004
Old 12-17-2004 , 09:45   Re: serverplugin_mosca - basic admin + reserved slots!
#9

Quote:
Originally Posted by Cyberz
Quote:
Originally Posted by BeetleFart
Quote:
Originally Posted by knoid
I'm using this plugin alongside Beetlefart's plugin - I use this for reserved slots only, and beetlefart's plugin for admin.

I added reserved slot to mine, it will kick a non admin when ever its full
with the cvar reservedslot set to 1.
yes i saw that, but he has an extra slots reserverd so nobody gets kicked..
Thats sounds like its the proper way to do it. Thats why I asked on my thread about how to do it, I didnt think this capability was available in source yet. Im assuming the server reports that there is 18 (20) clients in
the server so that it appears full unless your ip is in a list, I believe thats how the 1.6 versions worked, am I correct?
BeetleFart is offline
paulmon
New Member
Join Date: Dec 2004
Old 12-18-2004 , 05:15   Re: serverplugin_mosca - basic admin + reserved slots!
#10

Quote:
Originally Posted by BeetleFart
Quote:
Originally Posted by Cyberz
Quote:
Originally Posted by BeetleFart
Quote:
Originally Posted by knoid
I'm using this plugin alongside Beetlefart's plugin - I use this for reserved slots only, and beetlefart's plugin for admin.

I added reserved slot to mine, it will kick a non admin when ever its full
with the cvar reservedslot set to 1.
yes i saw that, but he has an extra slots reserverd so nobody gets kicked..
Thats sounds like its the proper way to do it. Thats why I asked on my thread about how to do it, I didnt think this capability was available in source yet. Im assuming the server reports that there is 18 (20) clients in
the server so that it appears full unless your ip is in a list, I believe thats how the 1.6 versions worked, am I correct?
This is fine if you dont have a limit on the number of slots on your server. However I have 24 slots and at least 30 admins. The chances of there being more than 4 or 5 admins on at the same time is remote so the last thing I want to do is tie up 5 slots.

The best way to do this is to have a checking slot, so on a 24 player server you have 25 slots. The 25th slot is only used to check if someone has admin rights. If an admin joins on the 25th slot then someone is kicked (high ping preferably).

This works really well on our CS:CZ server using amx and simpleslots.

Keep up the good work.
P
paulmon is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 00:10.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode