Functions Ban() - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Functions Ban() (
/showthread.php?tid=141602)
Functions Ban() -
Noredine - 14.04.2010
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.
Re: Functions Ban() -
Correlli - 14.04.2010
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.
Re: Functions Ban() -
Thrarod - 14.04.2010
But Rcon ban saves banned IPs if I remember right
Re: Functions Ban() -
Correlli - 14.04.2010
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.
Re: Functions Ban() -
Thrarod - 14.04.2010
Then use fwrite and GetPlayerIp for saving