10.09.2011, 18:00
pawn Code:
public OnPlayerConnect(playerid)
{
static string[MAX_PLAYER_NAME + 5];
new File:archive = fopen("Kicked.txt", io_read);
while(fread(archive, string)) {
string[strlen(string)-2] = EOS; //remove \r\n form file
if(!strfind(string, GetPlayerNick(playerid), true)) {
Kick(playerid);
}
}
fclose(archive);
return 1;
}
GetPlayerNick(i)
{
static nick[24];
return GetPlayerName(i, nick, 24), nick;
}