26.07.2013, 09:32
pawn Код:
public OnPlayerConnect(playerid)
{
new Gpd[MAX_PLAYER_NAME], PlayerName[MAX_PLAYER_NAME];
GetPlayerName(playerid, PlayerName, MAX_PLAYER_NAME);
new File:PK_Log = fopen("PK_list.txt", io_read);
if(fexist("PK_list.txt"))
{
while(fread(PK_Log, Gpd)
{
if(strcmp(Gpd,PlayerName,true)==0)
{
Kick(playerid);
}
}
}
return 1;
}