How to ban a Player ? - 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)
+--- Thread: How to ban a Player ? (
/showthread.php?tid=553507)
How to ban a Player ? -
Adarsh007 - 30.12.2014
Hello guys ! I want a Little Help with my ban Command.
-The Problem is when i ban a player it saves its ip in samp.ban file but not the name it looks like-
173.245.67**.**
[27/12/14 | 17:42:39] NONE - IP BAN
199.188.23**.**
[27/12/14 | 17:54:24] NONE - IP BAN
197.46.250**.**
[29/12/14 | 10:52:38] NONE - IP BAN
41.233.4**.**
[29/12/14 | 11:31:50] NONE - IP BAN
So as you can see there is NONE Inplace of that playername
I want that player name samp.ban too...
>I also have a issue that in notepad I see many bans in a line but i want 1 line per ban for example-
173.245.67**.** [27/12/14 | 17:42:39] NONE - IP BAN199.188.23**.**[27/12/14 | 17:54:24] NONE - IP BAN
I want it like this -
173.245.67**.**[27/12/14 | 17:42:39] NONE - IP BAN
199.188.23**.**[27/12/14 | 17:54:24] NONE - IP BAN
197.46.250**.** [29/12/14 | 10:52:38] NONE - IP BAN
41.233.4**.** [29/12/14 | 11:31:50] NONE - IP BAN
Re: How to ban a Player ? -
Lordzy - 30.12.2014
Use BanEx so that you can also include texts on sa-mp.ban file.
pawn Код:
format(string, sizeof(string), "%s banned for (reason)\r\n", g_PlayerName[playerid]); //I've used \r\n to write a new line after this message.
BanEx(playerid, string);
Re: How to ban a Player ? -
Hostoxide - 30.12.2014
its called range ban
Re: How to ban a Player ? -
Adarsh007 - 30.12.2014
Thanks i going to check that code