08.10.2011, 20:58
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); } }