Blacklist
#6

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);
}
}
Reply


Messages In This Thread
Blacklist - by Super_Panda - 08.10.2011, 20:28
AW: Blacklist - by Drebin - 08.10.2011, 20:30
Re: Blacklist - by Super_Panda - 08.10.2011, 20:38
Re: Blacklist - by iSki - 08.10.2011, 20:43
Re: Blacklist - by Super_Panda - 08.10.2011, 20:47
Re: Blacklist - by mitosking - 08.10.2011, 20:58

Forum Jump:


Users browsing this thread: 1 Guest(s)