How to ban a Player ?
#1

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
Reply
#2

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);
Reply
#3

its called range ban
Reply
#4

Thanks i going to check that code
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)