BanIdentity
Bans an identity (either an IP address or auth string).
native bool BanIdentity(const char[] identity, int time, int flags, const char[] reason, const char[] command = "", any source = 0)
Parameters
const char[] identity
String to ban (ip or authstring).
int time
Time to ban for (0 = permanent).
int flags
Flags (only IP and AUTHID are valid flags here).
const char[] reason
Ban reason string.
const char[] command
Command string to identify the source. If this is left
empty, then the OnBanIdentity forward will not be called.
any source
A source value that could be interpreted as a player
index of any sort (not actually checked by Core).
Return Value
bool True on success, false on failure.