Not sure.. it varies...
Saul had some ideas
IRC conv (edited):
Saul> Or I'll just ask you here
What is the actual limit for the reason string?
<Errant> no idea
it seemed to clip it
[15:33] <Saul> Yeah, 192 bytes
<Errant> hmm it's over 64 chjars
<Saul> some function like CheckSayText() in the SayText usermessage
handler
limits it to 92 chars
<Errant> but I treid it again and it clipped differently (1 more char)
92
would seem right
<Saul> Yeah
<Errant> or less
<Saul> whats the full string?
[15:35] <Errant> Player @MMMugs|Errant was kicked (You have been kicked by
@MMMugs|Errant (STEAM_x:x:xxxxxx) for admin abuse. Please appeal at
ht)
[15:36] <Saul> 129 chars
altogether]
<Errant> hmmm
<Saul> Then the reason is something like 94 chars
[15:42] <Errant> it varies tho
<Errant> someties it gets as far as the http
other times stops at at
[15:44] <Saul> That could always be the server sending packets differently
to the client
and its clipping it that way
Say 1 time it sends it like this:
[15:45] \x01<server time>\x01<index>\x02<usermsg><message>
Another time it could do
\x01\x01<server time>\x01<index>\x02<usermsg><message>
I'm sure it would fluctuate
Tom
--------------------------------------------------
From: "Kevin Ottalini" <[EMAIL PROTECTED]>
Sent: Saturday, March 08, 2008 3:41 PM
To: <[email protected]>
Subject: Re: [hlcoders] Howto drop a client? (With reason)
so that looks like a ... 235 character limit?
----- Original Message -----
From: "Thomas Morton"
To: <[email protected]>
Sent: Saturday, March 08, 2008 7:26 AM
Subject: Re: [hlcoders] Howto drop a client? (With reason)
Clips it.
It clipped this message (when I tried it) "You have been kicked by
@MMMugs|Errant (STEAM_x:x:xxxxxx) for admin abuse. Please appeal at
http://bans.clancontrol.net/mmmugs/glassfun" to "You have been kicked by
@MMMugs|Errant (STEAM_x:x:xxxxxx) for admin abuse. Please appeal at ht"
Tom
--------------------------------------------------
From: "Saul Rennison" > Sent: Saturday, March 08, 2008 3:23 PM
To: <[email protected]>
Subject: Re: [hlcoders] Howto drop a client? (With reason)
By "Doesn't display well" do you mean it clips it? If so whats the
limit?
On 8 Mar 2008, at 14:26, Thomas Morton wrote:
Sup Saul,
Yes that is the syntax :)
I literally was just using that when your email came :P
(Be careful with sending too long a string cos it doesn't display
well)
Tom
--------------------------------------------------
From: "Saul Rennison" >>> Sent: Saturday, March 08, 2008 2:18 PM
To: <[email protected]>
Subject: Re: [hlcoders] Howto drop a client? (With reason)
Sorry! Doesn't kickid support a reason? I'm sure the command is:
kickid <userid> <reason>
I'll look it up now!
On 8 Mar 2008, at 13:32, John wrote:
--
[ Picked text/plain from multipart/alternative ]
Omega was helping someone else with this in irc, here is his
solution.
UTIL_ClientPrintAll( HUD_PRINTCONSOLE, "#Game_idle_kick",
GetPlayerName() );
[20:06] <omega> engine->ServerCommand( UTIL_VarArgs( "kickid %d\n",
GetUserID() ) );
[20:07] <omega> look in css's language file for #game_idle_kick
On 3/8/08, Saul Rennison wrote:
Hey all,
I was just wondering if there is a way to drop a client (like in
HL1
with SV_DropClient) and give a reason.
I know about engine->ClientCommand(edict(), "disconnect\n"); but
you
can't supply a reason.
Thanks in advance,
- Saul.
_______________________________________________
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