Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ARConnect(playerid);
- new connecting_ip[32+1];
- GetPlayerIp(playerid,connecting_ip,32);
- new num_players_on_ip = GetNumberOfPlayersOnThisIP(connecting_ip);
- if(num_players_on_ip > MAX_CONNECTIONS_FROM_IP){
- new tmp3[50];
- GetPlayerIp(playerid,tmp3,50);
- printf("MAXIPS: %s(%d) excedeu o maximo de conexões: %d conectando com o IP: %s ao server %s.", sendername, playerid, MAX_CONNECTIONS_FROM_IP, tmp3,connecting_ip);
- SendClientMessage(playerid, -1, "3 CONEXÕES COM O MESMO IP NO SERVIDOR É PROIBIDO!");
- new stringbot[128];
- GetPlayerName(playerid, pname, sizeof(pname));
- new File:BOTS=fopen("bots.txt", io_append);
- format(stringbot, sizeof(stringbot), "Player: %s - IP: %s\r\n", pname, tmp3);
- fwrite(BOTS, stringbot);
- fclose(BOTS);
- Ban(playerid);}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement