I issue a disconnect, and if they are still on the server 2.5/10th seconds
later I then issue a kick.

Why do I do this? Because I have my own custom way of displaying a useful
kick message. (Example: http://www.voogru.com/images/new_ban_message.jpg),
if I do a normal kick, they will get the useless Kicked by console message
and might miss my custom one.

One problem I had when making this work, is if you sent the custom message,
and immediately kicked them off the server, they wouldn't see the custom
message, I solved this by delaying the disconnect/kick for 1/10th of a
second.

It would be nice for valve to make a way to boot a player off the server
with a useful kick message that doesn't limit me to 5 characters, but I'd be
dreaming then.

- voogru.



-----Original Message-----
From: Christian Marschalek [mailto:[EMAIL PROTECTED]
Sent: Monday, January 10, 2005 10:50 AM
To: hlcoders@list.valvesoftware.com
Subject: [hlcoders] Server Plugins - Interfaces?

Hi everyone,

If I understood the server plugin example correctly, I can only access
certain features through interfaces. Now I wonder if there's a list of
interfaces I can use in a server plugin? What I'm looking for especially is
a good method of disconnecting a client. I know that the engine interface
has a execute client method, but somehow executing a "disconnect" on a
client to kick him from a server does not feel right. I wonder if I have
access to the same methods that disconnect a user when I execute an "rcon
kick" command?

BTW: Does anyone know of a searchable archive of this list?

best regards,
Chris

_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives,
please visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders




_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to