Blacklist - 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)
+--- Thread: Blacklist (
/showthread.php?tid=288720)
Blacklist -
Super_Panda - 08.10.2011
Can I have a link of ANY blacklist system?
AW: Blacklist -
Drebin - 08.10.2011
.. why don't you search it yourself ?
Re: Blacklist -
Super_Panda - 08.10.2011
Cause I cant find it maybe...?
Re: Blacklist -
iSki - 08.10.2011
Well, it really depends on what you mean by Blacklisted..
Do you mean to check the DNS of the IP In-Game to see if it's blacklisted?
Or do you mean you wanna blacklist them on YOUR server?
And also if you wanna blacklist them on your own server.. What type of Database are you planning on using?
Dini or MYSQL
Re: Blacklist -
Super_Panda - 08.10.2011
Yes, "You cannot join this server since your name %s is blackisted!"
Kick(playerid);
DINI
Whitelist (Name)
Re: Blacklist -
mitosking - 08.10.2011
Create a file into scriptfiles directory. For an example, the name of the file is "blacklist.txt". Insert into this file all name for blacklist. In OnPlayerConnect, insert:
Code:
new pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, sizeof(pName));
new File:blacklist = fopen("blacklist.txt", io_read), get_name[24];
while(fread(blacklist, get_name))
{
if(!strcmp(pName, get_name, true))
{
new string[128];
format(string, 128, "You cannot join this server since your name %s is blacklisted!", pName);
SendClientMessage(playerid, -1, string);
}
}