View Single Post
muukis
Veteran Member
Join Date: Apr 2009
Old 01-29-2010 , 03:33   Re: [L4D & L4D2] Custom Player Stats v1.4B61
Reply With Quote #101

Quote:
Originally Posted by iNFiNiTeX View Post
I don't understand why you would use IP for LAN. LAN IP's are not static and are easily shared. Usernames on the otherhand are much more unique in a small LAN setting, and will never be shared.

Code:
GetClientRankAuthString(client, String:auth[], maxlength)
{
    GetClientAuthString(client, auth, maxlength);

    if (StrEqual(auth, "STEAM_ID_LAN", false))
        GetClientIP(client, auth, maxlength);
}
Is this the only code which forces the plugin to use IP tracking if sv_lan 1 is set? In which case, would changing "GetClientIP" to "GetClientName" force it to use nameid instead?
That's the spot and yes, changing those values would do the trick.

The names can be troublesome and for that reason I would not use it. In a small LAN setting it should not be hard to configure static IPs, or set the DHCP IP lease time so long that it does not change during the LAN event.
__________________
Monster Hunter

Though certainly not superhuman, the man's prowess inspires an excess of whispered rumors. But those rumors remain in the realm of speculation.

Last edited by muukis; 01-29-2010 at 03:41.
muukis is offline