Re: [Script] Hooks.dll [message #373738 is a reply to message #369904] |
Fri, 27 February 2009 04:47 |
raven
Messages: 595 Registered: January 2007 Location: Toronto, Ontario
Karma: 0
|
Colonel |
|
|
You'd need a connect/preconnect hook to do the second part.. perhaps something to be included in a future release?
-Jelly Administrator
-Exodus Administrator
|
|
|
Re: [Script] Hooks.dll [message #373745 is a reply to message #373688] |
Fri, 27 February 2009 05:31 |
|
jnz
Messages: 3396 Registered: July 2006 Location: 30th century
Karma: 0
|
General (3 Stars) |
|
|
halo2pac wrote on Fri, 27 February 2009 01:29 | Can you
StringClass tmp;
RequestSerial(ID, tmp);
In the Loading_Hook?
also if the loader is in a ban list, can u disconnect him before he joins?
|
You can request a player's serial wherever you want, but it will only call the hook when a player's client sends it, and it only sends it when it's requested. Also be careful, there is a bug in server.exe. The loading hook is called twice, with the boolian toggled. Just do a check on it to make sure it is 0 before sending the request. The loading hook isn't called for the player join, so don't expect to get the serial when they join.
A pre-join hook that is block-able will be avaliable. I think there's 3 options:
"The game is full"
"Version missmatch"
"You are banned from this channel"
The user sees this message as they try to join.
I wont be putting any sort of functionality in Hooks.dll, the actuall banning is up to you to impliment.
[Updated on: Fri, 27 February 2009 05:33] Report message to a moderator
|
|
|
|
|
|
|
Re: [Script] Hooks.dll [message #446114 is a reply to message #446113] |
Sat, 23 April 2011 00:38 |
|
sla.ro(master)
Messages: 610 Registered: September 2010 Location: Romania
Karma: 0
|
Colonel |
|
|
jnz wrote on Sat, 23 April 2011 10:36 | Make sure your code is not blocking the chat hook when a player joins, or when ever you requesting them to send the serial.
|
chat hooks blocks version, lol, i fixed it by removing add chat hook.
[Updated on: Sat, 23 April 2011 00:38] Report message to a moderator
|
|
|