The online racing simulator
About the IP address
Players entering the pits , I get the IP address . Without entering the pit , can I get the ip address?
-
(Skinzinho) DELETED by Yisc[NL] : No need to post this with every question asked
** Best answer **
I did a quick test and besides being able to get the IPAddress when someone is joining the track, you can also obtain it using the OnConnectClose event.
This is de code I wrote to quickly test what is possible:


<?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
?>


And this is the result of that test:

Attached images
Capture.PNG
-
(Skinzinho) DELETED by Yisc[NL] : This conversation can be private and doesn't help this section
Thank you Smile
This thread is closed

FGED GREDG RDFGDR GSFDG