Is there any way that when a user enters the server the "administrator" is shown on a button the IP address of the new user that connects?
I try like this but I do not work
If someone could correct the code I would appreciate it
I try like this but I do not work
<?php
Event OnConnect( $userName ) # Player event
obtenerIP( $KeyFlags );
EndEvent
?>
<?php
Sub obtenerIP( $KeyFlags )
IF ( UserIsAdmin( $userName ) == 1 )
THEN
openPrivButton( "base_obtenerIP1",4,80,32,6,4,3,23,"" );
openPrivButton( "base_obtenerIP2",4,80,32,6,4,3,23,"" );
openPrivButton( "base_obtenerIP3",4,80,32,6,4,3,23,"" );
openPrivButton( "obtenerIP1",5,81,30,4,4,3,32,"" );
openPrivButton( "obtenerIP2",5,81,30,4,4,3,32,"" );
openPrivButton( "obtenerIP3",5,81,30,4,4,3,32,"". GetCurrentPlayerVar ( "userName" ) . " ^6the IP address is^7: ". GetCurrentPlayerVar ( "IPAddress" ),"" );
ENDIF
EndSub
?>