23.02.2015, 00:03
If you have a large player-base and alot of bans, the default ban system is slow, as it needs to read the entire samp.bans file, remove the unbanned ip and rewrite the entire file again.
The default ban system is also a permanent ban system, as it doesn't hold timing information.
Custom made ban systems have alot more benefits.
If your own custom made ban-system also has an IP-check in it, why would you need the default samp ban-system on top of that?
You would have 2 different systems checking the same thing (the IP).
Seems like a waste of resources.
My own system for example allows a player to connect, the script checks his IP and searches the database if there is ANY banned account which holds the player's IP.
If one is found, the player is kicked.
This prevents banned players to create a new account (if you would only have account-bans).
If the first check is passed (no banned account found with the player's IP), the account itself is checked as well.
The player might have changed his IP (many ISP's work with DHCP).
If the account is not banned as well, the player is allowed to enter his password and log in.
If the account is banned, the player is kicked.
In both systems (IP-check and account-check), the player is kicked out and he's also informed how long the ban remains in effect.
With such a system, it's not even needed to use the default ban-system from samp itself.
The default ban system is also a permanent ban system, as it doesn't hold timing information.
Custom made ban systems have alot more benefits.
If your own custom made ban-system also has an IP-check in it, why would you need the default samp ban-system on top of that?
You would have 2 different systems checking the same thing (the IP).
Seems like a waste of resources.
My own system for example allows a player to connect, the script checks his IP and searches the database if there is ANY banned account which holds the player's IP.
If one is found, the player is kicked.
This prevents banned players to create a new account (if you would only have account-bans).
If the first check is passed (no banned account found with the player's IP), the account itself is checked as well.
The player might have changed his IP (many ISP's work with DHCP).
If the account is not banned as well, the player is allowed to enter his password and log in.
If the account is banned, the player is kicked.
In both systems (IP-check and account-check), the player is kicked out and he's also informed how long the ban remains in effect.
With such a system, it's not even needed to use the default ban-system from samp itself.