---
title: "GetPlayerRawIp | open.mp"
description: "Get the specified player's Raw IP address (v4)."
canonical: https://omp.itsneufox.com/vi/docs/scripting/functions/GetPlayerRawIp
language: vi
---

# GetPlayerRawIp

cảnh báo

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

```c
public OnPlayerConnect(playerid)
{
    new rawIp = GetPlayerRawIp(playerid);
    SendClientMessage(playerid, 0xFFFF00FF, "SERVER: Your Raw IP address: %d", rawIp);
    return 1;
}
```

## Notes

ghi chú

PAWN is case-sensitive. GetPlayerRawIP will not work.

## Related Functions

-   [GetPlayerIp](https://omp.itsneufox.com/vi/docs/scripting/functions/GetPlayerIp): Get a player's IP.
-   [NetStats\_GetIpPort](https://omp.itsneufox.com/vi/docs/scripting/functions/NetStats_GetIpPort): Get a player's IP and port.
