GetPlayerIP: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 25: | Line 25: | ||
==See Also== | ==See Also== | ||
{{ | {{Player functions}} |
Revision as of 14:03, 27 March 2009
This function returns a string containing the IP address of the client.
Syntax
string getPlayerIP ( client theClient )
Required Arguments
- theClient: The client element (player or admin) you want to get the IP of.
Returns
Returns a string containing the requested client's IP, or false if the client passed to the function is invalid.
Example
This example prints a player's IP to the chat.
function printIp(thePlayer) outputChatBox("IP: "..getPlayerIP(thePlayer), thePlayer) end addCommandHandler("ip", printIp)
See Also
- getPlayerTeam
- getPlayerBlurLevel
- setPlayerBlurLevel
- getPlayerSerial
- forcePlayerMap
- getPlayerScriptDebugLevel
- getPlayerFromName
- getPlayerMoney
- getPlayerName
- getPlayerNametagColor
- getPlayerNametagText
- getPlayerPing
- getPlayerWantedLevel
- givePlayerMoney
- isPlayerMapForced
- isPlayerNametagShowing
- setPlayerHudComponentVisible
- setPlayerMoney
- setPlayerNametagColor
- setPlayerNametagShowing
- setPlayerNametagText
- takePlayerMoney
- countPlayersInTeam
- getPlayersInTeam
- isVoiceEnabled
- setControlState
- getControlState