Is This Possible?
#1

to make a command that will check if an ip is banned in samp.bans?

like /lookup 127.0.0.1 ??
Reply
#2

yes it is possible...just take it as an string and compare it with the strings in the file... Simple ..
Reply
#3

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?
Reply
#4

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.
Reply
#5

Tip:

Read from file
Check player ip
Compare from samp.bans and playerip
Reply
#6

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

We can easly script plugin that reads that file.
Reply
#8

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)