.:: Bots United ::.

.:: Bots United ::. (http://forums.bots-united.com/index.php)
-   Half-Life 1 SDK (http://forums.bots-united.com/forumdisplay.php?f=33)
-   -   WON id code in 1.6 (http://forums.bots-united.com/showthread.php?t=2517)

Austin 25-08-2004 07:56

WON id code in 1.6
 
I was using the following code in 1.5 to check for certain players.

char WONID[32];
sprintf (WONID, "%d\n", g_engfuncs.pfnGetPlayerWONId(pPlayer));
if (strcmp ("3058868", WONID) == 0)
// matched

Does this work in 1.6?
I noticed that HLSW now shows WONid like this.
STEAM_0:0:3363193

dstruct2k 25-08-2004 08:15

Re: WON id code in 1.6
 
That might have something to do with the fact that there is no WON anymore.

It's called "Steam", and it's about as new as the news that HL2 was delayed the first time. 9_9

(Just playin man lol)

For clarification in your code, I suggest replacing "WONID" with "STEAMID" and strcmp'ing for STEAM_0:0:3363193 (or whatever player's SteamID you're looking for)

Whistler 25-08-2004 12:10

Re: WON id code in 1.6
 
use pfnGetPlayerAuthId() instead.
(can't remember the function name exactly but it has "authid" in it)

Pierre-Marie Baty 25-08-2004 14:01

Re: WON id code in 1.6
 
that's it.

Austin 27-08-2004 06:09

Re: WON id code in 1.6
 
Tx, everyone.


All times are GMT +2. The time now is 07:55.

Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.