Page 1 of 1

Last mod problems; IP adress.

PostPosted: Sun Nov 23, 08 4:41 pm
by Cozmo
Ok, so most of the difficult parts of coding my mod are over. There's not that much left to do now but add some more features to it. :) The one thing I really need help with now is how to check a player's IP adress so their character's info / details can be recorded. I know IP isn't the best option for this, because of things like dynamic IPs but this is temporary; if I get around to making a v2 of it, it will have a sort of password system.

Anyway, the problem is that I don't know where / what the var for the player's IP is. :oops: I checked things like PlayerReplicationInfo, GameInfo etc but couldn't actually find a var for it. I think Alex had a source for something that checked player IP in the Scripting Society, but that's all gone. :|

If anyone would help me, that would be great! :D It's the last thing in the way of this mod.

PostPosted: Sun Nov 23, 08 5:27 pm
by Dae
Cozmo wrote:how to check a player's IP adress

Code: Select all
string PlayerIP;
PlayerIP = YourPlayerActor.GetPlayerNetworkAddress();
PlayerIP = left(PlayerIP,instr(PlayerIP,":"));

PostPosted: Sun Nov 23, 08 5:35 pm
by Cozmo
Thanks for that Dae! :D Shouldn't take too long now