warning Not Translated
This page has not been translated into the language that your browser requested yet. The English content is being shown as a fallback.
If you want to contribute a translation for this page then please click here.
GetPlayerRawIp
warning
This function was added in omp v1.1.0.2612 and will not work in earlier versions!
Description
Get the specified player's Raw IP address (v4).
Name | Description |
---|---|
playerid | The ID of the player to get the Raw IP address of. |
Returns
Returns the player's Raw IP address as integer.
Examples
public OnPlayerConnect(playerid)
{
new rawIp = GetPlayerRawIp(playerid);
SendClientMessage(playerid, 0xFFFF00FF, "SERVER: Your Raw IP address: %d", rawIp);
return 1;
}
Notes
tip
PAWN is case-sensitive. GetPlayerRawIP will not work.
Related Functions
- GetPlayerIp: Get a player's IP.
- NetStats_GetIpPort: Get a player's IP and port.