/unban NAME_LASTNAME - 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: /unban NAME_LASTNAME (
/showthread.php?tid=249687)
/unban NAME_LASTNAME -
n4pkill - 20.04.2011
hey ppl after searching 10 hrs (i felt like

) im asking if theres a way to unban ppl by namelike the title says
i know the samp.ban has to read out per lines and then ??
i hope this will be answered soon
AW: /unban NAME_LASTNAME -
n4pkill - 20.04.2011
*bumb*
Re: /unban NAME_LASTNAME -
davelord - 20.04.2011
I dont think that is possible as the player must be ingame for that.
I'll suggest you to add a notepad file in scriptfiles with the banned names.
When you want it unbanned, just remove the name.
Re: /unban NAME_LASTNAME -
Vince - 20.04.2011
I could be mistaken, but as far as I know, you cannot access the samp.ban file directly via de server as this file is not stored in the scriptfiles directory. Something like this could be easily done in a MySQL database, however.
Re: /unban NAME_LASTNAME -
Zh3r0 - 20.04.2011
Quote:
Originally Posted by Vince
I could be mistaken, but as far as I know, you cannot access the samp.ban file directly via de server as this file is not stored in the scriptfiles directory. Something like this could be easily done in a MySQL database, however.
|
How about
../samp.ban
? That would work as ../ it's the main location of the folder
AW: /unban NAME_LASTNAME -
n4pkill - 06.05.2011
i think i could make it possible but i need a code to let a file read out line per line and put the lines into a string etc.
then search the string for the username and if it contains it, delete the line and reload bans...
isnt that easy or impossible?
Re: /unban NAME_LASTNAME -
farmer1710 - 06.05.2011
Quote:
Originally Posted by Vince
I could be mistaken, but as far as I know, you cannot access the samp.ban file directly via de server as this file is not stored in the scriptfiles directory. Something like this could be easily done in a MySQL database, however.
|
I have used vortex and the old one for sure /ban bans into samp.ban and /unban from ban.samp
Re: /unban NAME_LASTNAME - Deskoft - 06.05.2011
Well, there is a intresting way to do this, make a file called bans.txt or bans.ini, there you store the names of hte banned people, everytime they join the server and if their name is there, you kick them.
So if you unban them it will only recognize names.
This is the most logical way to ban / unban people.