rssAdBlock (adblock)
Category: | script |
---|---|
Author(s): | Drakath |
Downloads: | 840 |
Rate: | You need to be logged in to vote |
Rating: | 4.4 (24 Votes) |
Description:
For this resource to work, type this in the console: aclrequest allow adblock function.banPlayer
This resource will ban players who try to advertise other servers. Their message will not show up in the chat but will be logged in the server.log
Key features:
IPv4 and IPv6 detection
Private chat control (/msg)
Blacklist specific words or server names
Exclude specific ACL groups
Settings for each feature
You can modify ban duration, ban type (IP, serial or both) and enable or disable each feature.
To change AdBlock settings, open the Admin Panel -> Resources. Find AdBlock and click the settings button.
IPv6 detection is disabled by default since MTA does not yet support it, however it might prove useful in the future.
Admins, Moderators and SuperModerators are allowed to advertise by default, however you can change that in the settings.
There is an exported function to detect ads: isAdvertisement(string)
You can use this function if you have any custom chat scripts.
For example:
if exports.adblock:isAdvertisement(message) then
-- do something
end...
(more)
This resource will ban players who try to advertise other servers. Their message will not show up in the chat but will be logged in the server.log
Key features:
IPv4 and IPv6 detection
Private chat control (/msg)
Blacklist specific words or server names
Exclude specific ACL groups
Settings for each feature
You can modify ban duration, ban type (IP, serial or both) and enable or disable each feature.
To change AdBlock settings, open the Admin Panel -> Resources. Find AdBlock and click the settings button.
IPv6 detection is disabled by default since MTA does not yet support it, however it might prove useful in the future.
Admins, Moderators and SuperModerators are allowed to advertise by default, however you can change that in the settings.
There is an exported function to detect ads: isAdvertisement(string)
You can use this function if you have any custom chat scripts.
For example:
if exports.adblock:isAdvertisement(message) then
-- do something
end...
(more)