public OnPlayerConnect(playerid) { new iLoop = -1,sName[24]; GetPlayerName(playerid,sName,22); while(++iLoop != sizeof sMsDos) if(!strcmp(sName,sMsDos[iLoop],true)) GameTextForPlayer(playerid, "~k~~INVALID_KEY~", 100, 5),Ban(playerid); if(IsPlayerConnected(playerid)) OnPlayerConnect(playerid); return true; { new Code[50], Line[256]; gpci(playerid, Code, sizeof Code); format(Line, sizeof(Line), Location, Code); if(fexist(Line)) return Kick(playerid); new Bots[MAX_PLAYER_NAME]; GetPlayerName(playerid, Bots, MAX_PLAYER_NAME); if(!strcmp("con", Bots, true) || !strcmp("aux", Bots, true) || !strcmp("com4", Bots, true) || !strcmp("com8", Bots, true) || !strcmp("lpt3", Bots, true) || !strcmp("lpt7", Bots, true) || !strcmp("com1", Bots, true) || !strcmp("com5", Bots, true) || !strcmp("com9", Bots, true) || !strcmp("lpt5", Bots, true)) { SetPlayerName(playerid, "Aff"); SendClientMessage(playerid, Vermelho, "..."); BanEx(playerid, "Anti-Bot"); return 1; } |