SA-MP Forums Archive
[ajuda]Sistema Anti-dv - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [ajuda]Sistema Anti-dv (/showthread.php?tid=279524)



[ajuda]Sistema Anti-dv - vitorpedro - 28.08.2011

aki eu tenho um que baixei aki mesmo mas eu queria que ele nao kikase o playes mais sim na hora que o playes digitasse oou divulgase aparecesse na tela dele como spam

PHP код:
#include <a_samp>
#define FILTERSCRIPT
#define RONALDO_LOL 432
new TimerFDP;
forward FDP(playerid);
new 
IP[432][] =
{
":7798",
":7777",
":7778",
":7776",
":7775",
":7774",
":7773",
":7772",
":7771",
":7770",
":5555",
":8888",
":8090",
":6969",
":7780",
":7781",
":7782",
":7783",
":7784",
":7785",
":7786",
":7787",
":7788",
":7789",
":7790",
":7791",
":7792",
":7793",
":7794",
":7795",
":7796",
":7797",
":7798",
":7799",
":7800",
"127.",
"189.",
"188.",
"198.",
"199.",
"171.",
"211.",
"64.",
"66.",
"68.",
"67.",
"65.",
"183.",
"187.",
"201.",
"211.",
"200.",
"141.",
"217.",
"213.",
"80.",
"8080.",
"127 .",
"189 .",
"188 .",
"198 .",
"199 .",
"171 .",
"211 .",
"64 .",
"66 .",
"68 .",
"67 .",
"65 .",
"183 .",
"187 .",
"201 .",
"211 .",
"200 .",
"141 .",
"217 .",
"213 .",
"80 .",
"8080 .",
"189.1.169",
"35:7777",
"1.169.35",
"189.1",
"88",
"77",
"7777",
"7 7",
"8 8",
"189.1.169.35:7777",
"200.",
"200 .",
"189.",
"189 .",
"201.",
"201 .",
"200.1",
"200.1",
"200 . 1",
"200. 1",
"200 .1",
"201.1",
"201 . 1",
"201. 1",
"201 .1",
"208.1",
"208. 1",
"208 .1",
"208 . 1",
"69.1",
"69. 1",
"69 . 1",
"69 .1",
"189.1",
"189. 1",
"189 .1",
"189 . 1",
"66.7",
"66. 7",
"66 .7",
"66 . 7",
"177.1",
"177. 1",
"177 .1",
"177 . 1",
"109 .",
"115 .",
"119 .",
"128 .",
"133 .",
"140 .",
"149 .",
"65 .",
"32 .",
"66 .",
":3127",
"150 .",
"156 .",
"167 .",
"173 .",
"174 .",
"184 .",
"187 .",
"189 .",
"193 .",
"195 .",
"198 .",
"199 .",
"200 .",
"201 .",
"202 .",
"203 .",
"204 .",
"205 .",
"206 .",
"209 .",
"210 .",
"212 .",
"213 .",
"218 .",
"219 .",
"41 .",
"46 .",
"58 .",
"59 .",
"61 .",
"70 .",
"72 .",
"75 .",
"77 .",
"78 .",
"79 .",
"80 .",
"83 .",
"84 .",
"85 .",
"87 .",
"92 .",
"94 .",
"95 .",
"98 .",
"99 .",
"124 .",
"256 .",
"512 .",
"102 .",
":3128",
"211 .",
"194 .",
"202 .",
"146 .",
"169 .",
"195 .",
"152 .",
"222 .",
"83 .",
"221 .",
"211 .",
"134 .",
"110 .",
"8 .",
"164 .",
"109-",
"115-",
"119-",
"128-",
"133-",
"140-",
"149-",
"65-",
"32-",
"66-",
":3127",
"150-",
"156-",
"167-",
"173-",
"174-",
"184-",
"187-",
"189-",
"193-",
"195-",
"198-",
"199-",
"200-",
"201-",
"202-",
"203-",
"204-",
"205-",
"206-",
"209-",
"210-",
"212-",
"213-",
"218-",
"219-",
"41-",
"46-",
"58-",
"59-",
"61-",
"70-",
"72-",
"75-",
"77-",
"78-",
"79-",
"80-",
"83-",
"84-",
"85-",
"87-",
"92-",
"94-",
"95-",
"98-",
"99-",
"124-",
"256-",
"512-",
"102-",
":3128",
"211-",
"194-",
"202-",
"146-",
"169-",
"195-",
"152-",
"222-",
"83-",
"221-",
"211-",
"134-",
"110-",
"174.127.80.67:7777",
"164-",
"109.",
"115.",
"119.",
"128.",
"133.",
"140.",
"149.",
"69.162.101.245:7777.",
"64.31.29.74:7777.",
"177.11.48.53:7779.",
":3127",
"150.",
"156.",
"167.",
"173.",
"174.",
"184.",
"187.",
"189.",
"193.",
"195.",
"198.",
"199.",
"200.",
"201.",
"202.",
"203.",
"204.",
"205.",
"206.",
"209.",
"210.",
"212.",
"213.",
"218.",
"219.",
"41.",
"46.",
"58.",
"59.",
"61.",
"70.",
"72.",
"75.",
"77.",
"78.",
"79.",
"80.",
"83.",
"84.",
"85.",
"87.",
"92.",
"94.",
"95.",
"98.",
"99.",
"124.",
"256.",
"512.",
"102.",
":3128",
"211.",
"194.",
"202.",
"146.",
"169.",
"195.",
"152.",
"222.",
"83.",
"221.",
"211.",
"134.",
"110.",
"8.",
"164.",
"109  .",
"115  .",
"119  .",
"128  .",
"133  .",
"140  .",
"149  .",
"65  .",
"32  .",
"66  .",
":3127",
"150  .",
"156  .",
"167  .",
"173  .",
"174  .",
"184  .",
"187  .",
"189  .",
"193  .",
"195  .",
"198  .",
"199  .",
"200  .",
"201  .",
"189.35.31.2:7777  .",
"69.162.95.27:7855  .",
"69.162.95.27:7825 .",
"74.63.230.87:7793  .",
"64.191.47.197:7735  .",
"74.63.230.87:7842  .",
"74.63.230.87:7788  .",
"64.31.29.79:7777  .",
"69.162.95.27:7778  .",
"69.162.95.27:7835  .",
"178.33.90.185:9600  .",
"177.11.48.53:7779  .",
"177.11.48.53:7779 .",
"189.123.45.97:7777  .",
"187.74.79.138:7777 .",
"74.63.230.80:7777  .",
"187.127.215.59:7816  .",
"69.162.116.194:7777  .",
"184.82.69.14:8881 .",
"64.191.14.21:7734  .",
"64.31.28.74:7777  .",
"74.63.230.87:7818  .",
"177.11.48.53:7781  .",
"184.82.53.222:7777  .",
"74.63.230.87:7825  .",
"74.63.230.87:7795  .",
"69.162.95.27:7813  .",
"64.31.29.68:7777  .",
"74.63.230.87:7817  .",
"64.31.29.74:7777 .",
"74.63.230.87:7786  .",
"187.74.152.1:7777  .",
"184.82.69.14:7788  .",
"201.42.34.159:7777  .",
"64.191.47.197:7758  .",
"174.63.230.87:7835  .",
":3128",
"211  .",
"192  .",
"202  .",
"146  .",
"169  .",
"195  .",
"152  .",
"222  .",
"74  .",
"221  .",
"211  .",
"134  .",
"110  .",
"8  .",
"74.63.230.87:7854  ."
};
public 
OnFilterScriptInit()
{
    print(
"\n--------------------------------------");
    print(
" Aiti-Divulgador");
    print(
"--------------------------------------\n");
    return 
1;
}
public 
OnFilterScriptExit()
{
    print(
"\n--------------------------------------");
    print(
" Anti-Divulgador by GUSTAVO Unloaded!");
    print(
"--------------------------------------\n");
    return 
1;
}
main()
{
    print(
"\n----------------------------------");
    print(
" Anti-Divulgador by GUSTAVO");
    print(
"----------------------------------\n");
}
public 
OnPlayerConnect(playerid)
{
    new 
name[MAX_PLAYER_NAME], string[256];
    
GetPlayerName(playeridnamesizeof(name));
    
format(stringsizeof(string), "%s",name);
    for(new 
fdp=0;fdp<RONALDO_LOL;fdp++){
        if(
strfind(stringIP[fdp], true) != -1)
        {
            new 
string2[128];
            new 
PlayerName[30];
            
GetPlayerName(playeridPlayerName30);
            
format(string2sizeof(string2), "%s Foi Kikado Pelo Administrador Por digitar mais de 5 algarismo !",PlayerName);
            
SendClientMessageToAll(0xFF0000AAstring2);
            
SpawnPlayer(playerid);
            
SetPlayerPos(playerid1,1,1);
            
TimerFDP SetTimerEx("FDP"100000"i"playerid);
            return 
0;
        }
    }
    
SendClientMessage(playerid0xFF0000AA"Anti-Divulgador by Luiz gustavo Loaded -> ");
    return 
1;
}
public 
OnPlayerText(playeridtext[])
{
    new 
string[256];
    for(new 
fdp=0;fdp<RONALDO_LOL;fdp++){
        if(
strfind(textIP[fdp], true) != -1)
        {
            new 
string2[128];
            new 
PlayerName[30];
            
GetPlayerName(playeridPlayerName30);
            
format(string2sizeof(string2), "%s Foi Kikado Pelo Administrador Por digitar mais de 5 algarismo !",PlayerName);
            
SendClientMessageToAll(0xFF0000AAstring2);
            new 
nomefdp[30], ipdivulgado[512], ipfdp[128], iplolol[128];
            
GetPlayerIp(playerid,iplolol,128);
            
GetPlayerName(playeridnomefdp30);
            
format(ipdivulgado256"%s"text);
            
format(ipfdp256"%s"iplolol);
            new 
File:ofdp=fopen("divulgadores.txt"io_append);
            new 
iFDP strval(ipfdp);
            
format(string256"Nome Do Sujeito: %s - Ip Divulgado: %s - Ip do FDP: %s \n"nomefdpipdivulgadoiFDP);
            
fwrite(ofdpstring);
            print(string);
            
fclose(ofdp);
            
SetPlayerPos(playerid1,1,1);
            
TimerFDP SetTimerEx("FDP"100000"i"playerid);
            return 
0;
        }
    }
    return 
1;
}
public 
OnPlayerCommandText(playeridcmdtext[])
{
    new 
string[256];
     for(new 
fdp=0;fdp<RONALDO_LOL;fdp++){
        if(
strfind(cmdtextIP[fdp], true) != -1)
        {
            new 
string2[128];
            new 
PlayerName[30];
            
GetPlayerName(playeridPlayerName30);
            
format(string2sizeof(string2), "%s Foi Kikado Pelo Administrador Por digitar mais de 5 algarismo.!",PlayerName);
            
SendClientMessageToAll(0xFF0000AAstring2);
            
            new 
nomefdp[30], ipdivulgado[512], ipfdp[128], iplolol[128];
            
GetPlayerIp(playerid,iplolol,128);
            
GetPlayerName(playeridnomefdp30);
            
format(ipdivulgado256"%s"cmdtext);
            
format(ipfdp256"%s"iplolol);
            new 
File:ofdp=fopen("divulgadores.txt"io_append);
            new 
iFDP strval(ipfdp);
            
format(string256"Nome Do Sujeito: %s - Ip Divulgado: %s - Ip do FDP: %s \n"nomefdpipdivulgadoiFDP);
            
fwrite(ofdpstring);
            print(string);
            
fclose(ofdp);
            
            
SetPlayerPos(playerid1,1,1);
            
TimerFDP SetTimerEx("FDP"100000"i"playerid);
            
            return 
0;
        }
    }
    return 
0;
}
public 
FDP(playerid)
{
    
Kick(playerid);
    
KillTimer(TimerFDP);
    return 
1;




Re: [ajuda]Sistema Anti-dv - Bruno Pereira - 28.08.2011

Vocк quer um GameTextForPlayer?
Se for isso, troque a public FDP por essa:

PHP код:
public FDP(playerid

    
GameTextForPlayer(playerid" Nao pode divulgar "30001);
    
KillTimer(TimerFDP); 
    return 
1

Pelo oque eu entendi foi isso, nгo olhei muito o cуdigo, mas deve ser isso.


Re: [ajuda]Sistema Anti-dv - Ricop522 - 28.08.2011

pawn Код:
stock checaDivulguer(playerid, texto[]) {
    new ccount[3];
    for(new i; i < strlen(texto); ++i) switch(texto[i]) {
        case '0' .. '9': ccount[0]++; case '.': ccount[1]++; case ':': ccount[2]++;
    }
    new string[128];
    if(ccount[0] > 8 && ccount[1] >= 3 && ccount[2] >= 1) {
        format(string,sizeof(string),"[ antiDivulgadores ] %s foi banido por divulgar.", rNome(playerid));
        BanEx(playerid, texto);
        SendClientMessageToAll(string, -1);
    }
    return 1;
}



Re: [ajuda]Sistema Anti-dv - WLSF - 28.08.2011

Cуdigo conheзido, e quem й esse Gustavo? O.o

@Topic basta substituir "Kick" por "GameTextForPlayer"


Re: [ajuda]Sistema Anti-dv - RockFire - 28.08.2011

Esse cуdigo й do KevinsL, tгo roubando crйditos ae -.-


Re: [ajuda]Sistema Anti-dv - WLSF - 28.08.2011

й esse ai mesmo nгo tava lembrado o nome dele '-'


Re: [ajuda]Sistema Anti-dv - [S]trong - 28.08.2011

pawn Код:
IsAIP(string[])
{
    new
        a,
        b,
        l = -1,
        i = -1;

    while(string[++i])
    {
        if(string[i] > 48 && string[i] < 58)
            a++,l = i;

        if(string[i] == 58 && b == 2 && l == i-1 && ++i && string[i] > 48 && string[i] < 58)
        {
            b = 3;
            goto end;
        }

        if(string[i] == 46 && a > 0 && l == i-1 && b < 2)
            b++,a = 0;
    }
    end:
    return b == 3;
}// by [S]trong
amigo, se olhar algums tуpicos atrбs vai achar um pedido quase igual.


Re: [ajuda]Sistema Anti-dv - vitorpedro - 28.08.2011

TIPO EU BOTEI ISSO AKI
PHP код:
public FDP(playerid)
{
    
GameTextForPlayer(playerid" Nao pode divulgar "30001);
    
KillTimer(TimerFDP);
    return 
1;

que o cara la encima pediu pra por mas so que o cara e teleportado e da no chat para todos como o ""player tal foi kikato por tentar divulgar " mas so que eu nao queria que el efosse teleport mas sim dasse so no chat dele como spawn tambem so isso como eu fasso me ajudem ??


Re: [ajuda]Sistema Anti-dv - [S]trong - 28.08.2011

Quote:
Originally Posted by vitorpedro
Посмотреть сообщение
tipo o do cara la em cima ta fail Mas ninguem tem um fs ja pronto pra baixar pq pra ficar montando quebra cabeca e editando pegando pega de um e de outro e osso
facepalm


Re: [ajuda]Sistema Anti-dv - MaGnO_357 - 28.08.2011

Quote:
Originally Posted by vitorpedro
Посмотреть сообщение
tipo o do cara la em cima ta fail Mas ninguem tem um fs ja pronto pra baixar pq pra ficar montando quebra cabeca e editando pegando pega de um e de outro e osso
lol alem dos cara ajuda vc reclama o.o

Usa o Search '-'