26.04.2012, 17:08
pawn Код:
public OnPlayerConnect(playerid)
{
for(new i; i<sizeof(NomesProibidos); i++)
{
new Nome[40];
new String[128];
new Nick[MAX_PLAYER_NAME];
GetPlayerName(i,Nome,sizeof(Nome));
GetPlayerName(playerid, Nick, sizeof(Nick));
if(!strcmp(Nick, NomesProibidos[i], true))
{
SendClientMessage(i, 0xFFFF00AA, "[INFO-NICK] Vocк Foi Banido/Kickado Do Servidor Por Usar Um Nick Proibido!");
BanEx(i, "-=[Nick Proibido]=-");
format(String, sizeof(String), "[Anti Nick's] O Jogador %s Foi Kickado/Banido Por Tentar Entrar Com Nick Proibido", Nome);
SendClientMessageToAll(0xFF0000AA, String);
WriteLog("NicksProibidos", String);
}
}
return 1;
}