Functions Ban()
#1

When the banned player joins the server
Him see: You are banned from the server.
I want to add message after: You are banned from the server.
Example:
You are banned from the server.
Yes, You banned HAHAHA!

I have save ban log when the player is banned.
Reply
#2

It's best if you use custom ban-system for that and custom ban function in which you're going to store the players IP and at OnPlayerConnect you're going to check if his IP is stored in the file - and if it is, then you can send your own message and kick him from the server.
Reply
#3

But Rcon ban saves banned IPs if I remember right
Reply
#4

Quote:
Originally Posted by Thrarod
But Rcon ban saves banned IPs if I remember right
It saves them into the samp.ban file. You can't access that file with the native PAWN functions, because it's outside of the scriptfiles folder.
Reply
#5

Then use fwrite and GetPlayerIp for saving
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)