Jump to navigation Jump to search
|This function is deprecated. This means that its use is discouraged and that it might not exist in future versions.|
Please use getPlayerIP instead.
This function returns a string containing the IP address of the client.
string getClientIP ( client theClient )
- theClient: The client element (player or admin) you want to get the IP of.
Returns a string containing the requested client's IP, or false if the client passed to the function is invalid.
This example prints a player's IP to the chat.
function printIP ( thePlayer, command ) outputChatBox ( getClientName ( thePlayer ) .. "'s IP is: " .. getClientIP ( thePlayer ) ) end addCommandHandler ( "ip", printIP )