Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Release Forum » [Script] Hooks.dll
Re: [Script] Hooks.dll [message #373745 is a reply to message #373688] Fri, 27 February 2009 05:31 Go to previous messageGo to previous message
jnz is currently offline  jnz
Messages: 3396
Registered: July 2006
Location: 30th century
Karma:
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

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: C&C_Intro
Next Topic: [skins] PT Icons Redone
Goto Forum:
  


Current Time: Sun Nov 24 05:19:05 MST 2024

Total time taken to generate the page: 0.01484 seconds