/unban using samp.ban?
#1

Hi there.

My admin system is saving all bans in the regular samp.ban file. Now Iґve wanted to add /unban NAME to it, and I have only found unban commands for other, own-made ban files.

Wouldnt it be possible to open the samp.ban, search for a name in it and delete the line?
Reply
#2

Open RCON Console and type in: unbanip [IP]
Reply
#3

AH cmon, GTFO with your comments, I want a /unban NAME command and not some RCON shit.
Reply
#4

Open the file, go through it with fread + a loop, search if the string contains that name, get the ip out of the string and SendRconCommand("unban ip")
Reply
#5

pLz /unban SimPlY.......Nush Cne Mio Dat Ban da nAm FAkut NimiK
Reply
#6

Quote:
Originally Posted by SimPlY
pLz /unban SimPlY.......Nush Cne Mio Dat Ban da nAm FAkut NimiK
Don't bump the old topics.
Search.
Write in English language.
Reply
#7

you could call a RCON command: ( get your own way of doing the command =P )
IPStr is the IP you want to unban
Код:
new str[32];
format(str,32,"unbanip %s",IPStr);
SendRconCommand(str);
printf("UNBAN Executed by %i",playerid);
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)