Players entering the pits , I get the IP address . Without entering the pit , can I get the ip address?
<?php
CatchEvent OnConnect( $userName ) # Player event
OnConnect_IP_Saving();
EndCatchEvent
CatchSub OnConnectClose( $KeyFlags,$id )
OnConnectClose_IP_Saving();
EndCatchSub
CatchEvent OnNewPlayerJoin( $userName ) # Player event
OnNewPlayerJoin_IP_Saving();
EndCatchEvent
Sub OnConnect_IP_Saving()
$userName = GetCurrentPlayerVar( "UserName" );
PrivMsg ("^7DEBUG OnConnect: " . GetPlayerVar($userName,"IPAdress") );
EndSub
Sub OnConnectClose_IP_Saving()
$userName = GetCurrentPlayerVar( "UserName" );
PrivMsg ("^7DEBUG OnConnectClose: " . GetPlayerVar($userName,"IPAdress") );
EndSub
Sub OnNewPlayerJoin_IP_Saving()
$userName = GetCurrentPlayerVar( "UserName" );
PrivMsg ("^7DEBUG OnNewPlayerJoin: " . GetPlayerVar($userName,"IPAdress") );
EndSub
?>