IsBanned
cảnh báo
Đã thêm hàm trong phiên bản omp v1.1.0.2612. Mục này không hoạt động trên các phiên bản cũ hơn!
Description
Checks if the given IP address is banned.
| Name | Description |
|---|---|
| const ipAddress[] | The IP address to check. |
Returns
Returns true if the IP address is banned, otherwise false.
Examples
if (IsBanned("255.255.255.255"))
{
// Do something
}
Notes
mẹo
You can see the ban list in the bans.json file.
Related Functions
- BlockIpAddress: Block an IP address from connecting to the server for a set amount of time.
- UnBlockIpAddress: Unblock an IP that was previously blocked.
- Ban: Ban a player from playing on the server.
- BanEx: Ban a player with a custom reason.
- Kick: Kick a player from the server.
- ClearBanList: Clears the ban list.