Is This Possible? - 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: Is This Possible? (
/showthread.php?tid=88755)
Is This Possible? -
CJ101 - 28.07.2009
to make a command that will check if an ip is banned in samp.bans?
like /lookup 127.0.0.1 ??
Re: Is This Possible? -
abhinavdabral - 28.07.2009
yes it is possible...just take it as an string and compare it with the strings in the file... Simple ..
Re: Is This Possible? -
luby - 28.07.2009
Quote:
Originally Posted by ۞●•λвнiиаv•●۞
yes it is possible...just take it as an string and compare it with the strings in the file... Simple ..
|
so, how to read file that is not in scriptfiles?
Re: Is This Possible? -
CJ101 - 28.07.2009
Quote:
Originally Posted by Luby
Quote:
Originally Posted by ۞●•λвнiиаv•●۞
yes it is possible...just take it as an string and compare it with the strings in the file... Simple ..
|
so, how to read file that is not in scriptfiles?
|
probaly could just have your /ban command also make a file in scriptfiles with the bans, and read from that.
Re: Is This Possible? -
Chrham_2 - 28.07.2009
Tip:
Read from file
Check player ip
Compare from samp.bans and playerip
Re: Is This Possible? -
Correlli - 28.07.2009
Quote:
Originally Posted by Chrham_2
Tip:
Read from file
Check player ip
Compare from samp.bans and playerip
|
Read other posts before posting the same thing. samp.ban file is
not in scriptfiles folder.
Re: Is This Possible? -
luby - 28.07.2009
We can easly script plugin that reads that file.
Re: Is This Possible? -
Chrham_2 - 28.07.2009
Quote:
Originally Posted by Don Correlli
Quote:
Originally Posted by Chrham_2
Tip:
Read from file
Check player ip
Compare from samp.bans and playerip
|
Read other posts before posting the same thing. samp.ban file is not in scriptfiles folder.
|
Oh yeah, sorry.