முதன்மை உள்ளடக்கத்துக்குச் செல்லவும்

IsBanned

எச்சரிக்கை

செயல்பாடு என்பது omp v1.1.0.2612 பதிப்பில் சேர்க்கப்பட்டது. இது முந்தைய பதிப்புகளில் இயங்காது!

Description​

Checks if the given IP address is banned.

NameDescription
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​

உதவிக்குறிப்பு

You can see the ban list in the bans.json file.

  • 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.