unban cmd using samp.ban
#1

Hello

My admin system is saving all bans in the regular samp.ban file. Now I 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 the samp.ban in notebook and youle find the name erase it to unban the person
Reply
#3

Quote:
Originally Posted by Dan_Barocu
Посмотреть сообщение
open the samp.ban in notebook and youle find the name erase it to unban the person
Read the post again...
Reply
#4

I dont think its possible @Dan lol'd
Reply
#5

hm

this was posted by dice7

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")

Cannot?
Reply
#6

sorry for wrong dirrections
Reply
#7

Quote:
Originally Posted by fissekarl
Посмотреть сообщение
hm

this was posted by dice7

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")

Cannot?
It's possible, but samp.ban is outside scriptfiles folder.
Reply
#8

Any way to change it in to the scriptfiles so it puts the samp.ban in scriptfiles when a new ban is made?

EDIT: Congrats 2000 Posts
Reply
#9

bump.

Also is there a function like PlaySoundForAll or something?
Reply
#10

Oh

What about the SoundForAll question?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)