Skip to content

BlockIpAddress and UnBlockIpAddress #25

Open
@Disinterpreter

Description

@Disinterpreter

Function name
BlockIpAddress(ip_address[], timems)
UnBlockIpAddress(ip_address[])

ip_address The IP to block.
timems The time (in milliseconds) that the connection will be blocked for. 0 can be used for an indefinite block.

Describe the function
Blocks an IP address from further communication with the server for a set amount of time (with wildcards allowed). Players trying to connect to the server with a blocked IP address will receive the generic "You are banned from this server." message. Players that are online on the specified IP before the block will timeout after specific amount of seconds and, upon reconnect, will receive the same message. Effect takes place only when server is running (it is not persistent).

Equivalent in MTA
https://wiki.multitheftauto.com/wiki/AddBan
https://wiki.multitheftauto.com/wiki/RemoveBan

But there is a problem.

Blocks an IP address from further communication with the server for a set amount of time (with wildcards allowed).

Additional information
BlockIpAddress
UnBlockIpAddress

Metadata

Metadata

Assignees

No one assigned

    Labels

    compatibilityCompatibility with latest version of SAMPdepends on blueThe feature might depend on MTA:SA source codefunctionSAMP functions

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions