Last mod problems; IP adress.

The best and quickest support by a group of top-notch editing specialists, guaranteed!

Moderator: Forum Guards

Last mod problems; IP adress.

Postby Cozmo » Sun Nov 23, 08 4:41 pm

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.
Cozmo
Master
 
Posts: 1266
Joined: Tue Jun 28, 05 10:53 am
Location: UK

Postby Dae » Sun Nov 23, 08 5:27 pm

Cozmo wrote:how to check a player's IP adress

Code: Select all
string PlayerIP;
PlayerIP = YourPlayerActor.GetPlayerNetworkAddress();
PlayerIP = left(PlayerIP,instr(PlayerIP,":"));
User avatar
Dae
Alpha
 
Posts: 12086
Joined: Sat Sep 06, 03 4:40 pm

Postby Cozmo » Sun Nov 23, 08 5:35 pm

Thanks for that Dae! :D Shouldn't take too long now
Cozmo_RPG (v1 & v2)
MPConversations - A tool for creating multiplayer RPG stuff
Cozmo
Master
 
Posts: 1266
Joined: Tue Jun 28, 05 10:53 am
Location: UK


Return to Editing issues

Who is online

Users browsing this forum: No registered users and 18 guests