note Help Needed
This wiki is the result of an ongoing community effort — thank you all for helping!
If you want to provide changes to 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.