07.01.2010, 02:59
Definetly not. I already got this:
But that kicks the one who banned the player aswell when he/she tries to connect...
so if Sarah_Johnson banned Daniel_Jackson,
The server kicks them both when they tries to connect.
pawn Код:
stock BanCheck(playerid)
{
new pName[MAX_PLAYER_NAME], string[128];
GetPlayerName(playerid,pName,sizeof(pName));
new File:check = fopen("CLRP/Bans.ban", io_read);
while(fread(check, string))
{
if(!strcmp(string,pName)) return 1;
new server[256];
format(server,sizeof(server),".: Server kicked %s, Account BANNED! :.",pName);
SendClientMessageToAll(COLOR_DARKRED, server);
Kick(playerid);
}
return 1;
}
so if Sarah_Johnson banned Daniel_Jackson,
The server kicks them both when they tries to connect.