Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » Get Client's BHS / Scripts Version
Get Client's BHS / Scripts Version [message #371153] Sun, 08 February 2009 14:02 Go to next message
a000clown
Messages: 363
Registered: May 2005
Location: Canada
Karma: 0
Commander
Anyone know how to find the bhs.dll/scripts.dll version of a player ingame? I've searched through the SSGM source but could only find things relating to the server's version instead of the client.
Re: Get Client's BHS / Scripts Version [message #371154 is a reply to message #371153] Sun, 08 February 2009 14:07 Go to previous messageGo to next message
jnz is currently offline  jnz
Messages: 3396
Registered: July 2006
Location: 30th century
Karma: 0
General (3 Stars)
void VersionHook(int PlayerID, float Version)
{
   printf("%S's version is: %.1f\n", Get_Wide_Player_Name_By_ID(PlayerID), Version);
}



AddVersionHook(VersionHook); //not a real hook, but whatever


Re: Get Client's BHS / Scripts Version [message #371163 is a reply to message #371153] Sun, 08 February 2009 14:46 Go to previous messageGo to next message
a000clown
Messages: 363
Registered: May 2005
Location: Canada
Karma: 0
Commander
Thanks Wink
I saw ur nick in the online users list and hoped you would answer haha Razz

[Updated on: Sun, 08 February 2009 14:46]

Report message to a moderator

Re: Get Client's BHS / Scripts Version [message #371168 is a reply to message #371153] Sun, 08 February 2009 15:22 Go to previous messageGo to next message
jnz is currently offline  jnz
Messages: 3396
Registered: July 2006
Location: 30th century
Karma: 0
General (3 Stars)
heh
Re: Get Client's BHS / Scripts Version [message #371207 is a reply to message #371163] Mon, 09 February 2009 00:11 Go to previous messageGo to next message
_SSnipe_ is currently offline  _SSnipe_
Messages: 4121
Registered: May 2007
Location: Riverside Southern Califo...
Karma: 0
General (4 Stars)
Clown wrote on Sun, 08 February 2009 13:46

Thanks Wink
I saw ur nick in the online users list and hoped you would answer haha Razz

Roshambo and saberhawk are like the best people to ask anything renegade lated Smile
(coding/modidng/etc)
reborn as well and some others i cant remeber
Re: Get Client's BHS / Scripts Version [message #371236 is a reply to message #371153] Mon, 09 February 2009 09:32 Go to previous messageGo to next message
mrãçķz is currently offline  mrãçķz
Messages: 3069
Registered: August 2007
Karma: 0
General (3 Stars)
Permabanned for trying and failing DDoS
You forgot Danpaul88 and Sir_Kane Wink

[Updated on: Mon, 09 February 2009 09:35]

Report message to a moderator

Re: Get Client's BHS / Scripts Version [message #371239 is a reply to message #371153] Mon, 09 February 2009 09:49 Go to previous messageGo to next message
reborn is currently offline  reborn
Messages: 3231
Registered: September 2004
Location: uk - london
Karma: 0
General (3 Stars)
There are lots of people note worthy, however SSnipe is right. SaberHawk and Roshambo are the most approachable and friendly. StealthEye is another excellent example of a helpful and friendly individual.


Re: Get Client's BHS / Scripts Version [message #371240 is a reply to message #371236] Mon, 09 February 2009 09:53 Go to previous messageGo to next message
ErroR is currently offline  ErroR
Messages: 2984
Registered: March 2008
Location: Moldova
Karma: 0
General (2 Stars)
madrackz wrote on Mon, 09 February 2009 18:32

Sir_Kane Wink

ur always talking about him Stern
Re: Get Client's BHS / Scripts Version [message #371243 is a reply to message #371153] Mon, 09 February 2009 10:16 Go to previous messageGo to next message
mrãçķz is currently offline  mrãçķz
Messages: 3069
Registered: August 2007
Karma: 0
General (3 Stars)
Permabanned for trying and failing DDoS
WHat ? are you stupid ?
Re: Get Client's BHS / Scripts Version [message #371245 is a reply to message #371153] Mon, 09 February 2009 10:23 Go to previous messageGo to next message
dr3w2 is currently offline  dr3w2
Messages: 485
Registered: September 2006
Location: Ottawa,Canada
Karma: 0
Commander
pfft saberhawk sucks and doesn't know or help with anything Big Grin Big Grin

n00bstories Server Administrator
Re: Get Client's BHS / Scripts Version [message #371246 is a reply to message #371153] Mon, 09 February 2009 10:25 Go to previous messageGo to next message
ErroR is currently offline  ErroR
Messages: 2984
Registered: March 2008
Location: Moldova
Karma: 0
General (2 Stars)
no, what did i say Dont Get It
Re: Get Client's BHS / Scripts Version [message #371247 is a reply to message #371240] Mon, 09 February 2009 10:36 Go to previous messageGo to next message
cAmpa is currently offline  cAmpa
Messages: 597
Registered: March 2006
Karma: 0
Colonel
ErroR wrote on Mon, 09 February 2009 17:53

madrackz wrote on Mon, 09 February 2009 18:32

Sir_Kane Wink

ur always talking about him Stern



His secret hero tbh.


Bückstabü!
Re: Get Client's BHS / Scripts Version [message #371249 is a reply to message #371153] Mon, 09 February 2009 10:44 Go to previous messageGo to next message
mrãçķz is currently offline  mrãçķz
Messages: 3069
Registered: August 2007
Karma: 0
General (3 Stars)
Permabanned for trying and failing DDoS
Show me that i always talk about him,


Quote:

pfft saberhawk sucks and doesn't know or help with anything Big Grin Big Grin


Shaders *Sniff*
Re: Get Client's BHS / Scripts Version [message #371251 is a reply to message #371153] Mon, 09 February 2009 10:50 Go to previous messageGo to next message
ErroR is currently offline  ErroR
Messages: 2984
Registered: March 2008
Location: Moldova
Karma: 0
General (2 Stars)
i see only you say his name Huh
Re: Get Client's BHS / Scripts Version [message #371253 is a reply to message #371153] Mon, 09 February 2009 10:53 Go to previous messageGo to next message
mrãçķz is currently offline  mrãçķz
Messages: 3069
Registered: August 2007
Karma: 0
General (3 Stars)
Permabanned for trying and failing DDoS
Very Happy
Re: Get Client's BHS / Scripts Version [message #371277 is a reply to message #371249] Mon, 09 February 2009 13:08 Go to previous messageGo to next message
Genesis2001
Messages: 1397
Registered: August 2006
Karma: 0
General (1 Star)
madrackz wrote on Mon, 09 February 2009 10:44

Quote:

pfft saberhawk sucks and doesn't know or help with anything Big Grin Big Grin


Shaders *Sniff*


Sarcasm
Re: Get Client's BHS / Scripts Version [message #371288 is a reply to message #371277] Mon, 09 February 2009 14:07 Go to previous messageGo to next message
dr3w2 is currently offline  dr3w2
Messages: 485
Registered: September 2006
Location: Ottawa,Canada
Karma: 0
Commander
Zack wrote on Mon, 09 February 2009 14:08

madrackz wrote on Mon, 09 February 2009 10:44

Quote:

pfft saberhawk sucks and doesn't know or help with anything Big Grin Big Grin


Shaders *Sniff*


Sarcasm

Huh saberhawk will understand my comment Big Ups


n00bstories Server Administrator
Re: Get Client's BHS / Scripts Version [message #371289 is a reply to message #371153] Mon, 09 February 2009 14:10 Go to previous messageGo to next message
mrãçķz is currently offline  mrãçķz
Messages: 3069
Registered: August 2007
Karma: 0
General (3 Stars)
Permabanned for trying and failing DDoS
He will burn down your House and eat your Bones
Re: Get Client's BHS / Scripts Version [message #442455 is a reply to message #371153] Tue, 11 January 2011 11:43 Go to previous messageGo to next message
snazy2000 is currently offline  snazy2000
Messages: 67
Registered: December 2007
Karma: 0
Recruit
Sorry for bumping this topic but thought it was pointless creating new one :/
Anyways I've done everything i can do try and get this to work but i just don't understand what i'm doing wrong :S i added the version hook and the AddVersionhook into the void SSGM_Secondary_Load() but when a player joins it doesn't get the version :S do i need to do anything anywhere else ?? please help :S
Re: Get Client's BHS / Scripts Version [message #442619 is a reply to message #371153] Thu, 13 January 2011 16:29 Go to previous messageGo to next message
halo2pac is currently offline  halo2pac
Messages: 659
Registered: December 2006
Location: Near Cleveland, Ohio
Karma: 0
Colonel
You need to show code.

http://img339.imageshack.us/img339/1991/nefobbygenyunoreleasere.jpg
Rene-Buddy | Renegade X
Join the fight against Obsessive-Compulsive Posting Disorder. Cancel is ur friend.
*Renegade X Dev Team Member*
Re: Get Client's BHS / Scripts Version [message #442650 is a reply to message #442619] Fri, 14 January 2011 04:46 Go to previous messageGo to next message
snazy2000 is currently offline  snazy2000
Messages: 67
Registered: December 2007
Karma: 0
Recruit
its the code at the top lol that jnz posted lol :/
Quote:

void VersionHook(int PlayerID, float Version)
{
printf("%S's version is: %.1f\n", Get_Wide_Player_Name_By_ID(PlayerID), Version);
}



AddVersionHook(VersionHook); //not a real hook, but whatever

Re: Get Client's BHS / Scripts Version [message #442652 is a reply to message #442650] Fri, 14 January 2011 04:53 Go to previous messageGo to next message
Omar007 is currently offline  Omar007
Messages: 1711
Registered: December 2007
Location: Amsterdam
Karma: 0
General (1 Star)
snazy2000 wrote on Fri, 14 January 2011 12:46

its the code at the top lol that jnz posted lol :/
Quote:

void VersionHook(int PlayerID, float Version)
{
printf("%S's version is: %.1f\n", Get_Wide_Player_Name_By_ID(PlayerID), Version);
}



AddVersionHook(VersionHook); //not a real hook, but whatever



That should actually say it all...


http://tiberiumredux.omarpakker.nl/Old Unused Parts/Plaatjes/PromoteBanner_Hades_small.jpg
Re: Get Client's BHS / Scripts Version [message #442792 is a reply to message #371153] Sun, 16 January 2011 11:42 Go to previous messageGo to next message
Hex is currently offline  Hex
Messages: 858
Registered: March 2004
Karma: 0
Colonel
This is what I do, first you need to load the function, if you are using SSGM you can do it in plugin_load() afaik

void plugin_load()
{
        AddVersionHook(VersionHook);
	memset((void *)BHS_Versions, 0, 128*sizeof(float));
}



float Functions::BHS_Versions[128];
 
void Functions::VersionHook(int PlayerID,float Version)
{
	BHS_Versions[PlayerID] = Version;
}

when the player joins you get the version store it to use

   version id


		
        p->BHS = Functions::BHS_Versions[ID];
	Functions::BHS_Versions[ID] = 0;


Original code from Dan (jnz) afaik


goztow wrote on Tue, 11 May 2010 08:00

If we had to ban all who ever cheated or ever created a cheat (obj3cts and such) then I don't think there would be many members left here (sad fact).


reborn wrote on Fri, 29 January 2010 23:37

std is for pro's. Razz
Re: Get Client's BHS / Scripts Version [message #442799 is a reply to message #442792] Sun, 16 January 2011 12:59 Go to previous messageGo to next message
snazy2000 is currently offline  snazy2000
Messages: 67
Registered: December 2007
Karma: 0
Recruit
Thats what i do but i cant get it to work :/ when the player joins the server the hook doesnt get called?? prob summin stupid but ya lol its exactly the same as what Hex has done :/
Re: Get Client's BHS / Scripts Version [message #442804 is a reply to message #371153] Sun, 16 January 2011 16:06 Go to previous messageGo to previous message
Omar007 is currently offline  Omar007
Messages: 1711
Registered: December 2007
Location: Amsterdam
Karma: 0
General (1 Star)
Don't you need the Hooks.dll from JNZ aswell then?

http://tiberiumredux.omarpakker.nl/Old Unused Parts/Plaatjes/PromoteBanner_Hades_small.jpg
Previous Topic: Ion cannon beam w3d filename
Next Topic: "Yo" filename
Goto Forum:
  


Current Time: Thu Nov 21 16:40:34 MST 2024

Total time taken to generate the page: 0.01259 seconds