[Ajuda] anti wallhack tagname
#1

Tem como bloquear esse wallhack de tagname? Pessoal deve conhecer, qnd ativa ele da pra ver o nome de geral de longe pra crl e a vida e o colete

Ouvi dizer que o melhor jeito era com essa funзгo
https://sampwiki.blast.hk/wiki/OnPlayerStreamIn

Como!?
Reply
#2

Eu nгo sei como realmente funciona essa callback: Se ela pega quando vocк ver o boneco, ou quando ver o Nick.

Se ela for chamada realmente quando aparece o nick, faзa uma verificaзгo de distвncia entre os dois players. Pega o Limite da distвncia padrгo da callback, e se for maior(2x), vocк pode detectar o tal "hacker tagname"
Reply
#3

Usa a callback para fazer aparecer o nome do player e usa a onplayerstreamout para fazer desaparecer o nome.
Reply
#4

http://forum.sa-mp.com/showpost.php?...postcount=3047
OBS: nгo funcionara com OnPlayerStreamIn e OnPlayerStreamOut.
Reply
#5

Quote:
Originally Posted by Day_
Посмотреть сообщение
Reputado, mas estб me faltando a include forche

O que isso faz?
foreach(Player,i) ?

foreach(Player,playerid)
E isso?

Ou vou ter que colocar a include msm?

Erros nos comentarios do lado das linhas
Код:
forward AntiNameTag();
public AntiNameTag()
{
    foreach(Player,playerid) // error 017: undefined symbol "foreach"
    {
        foreach(Player,i) // error 017: undefined symbol "foreach"
        {
            if(i == playerid)    continue; // error 017: undefined symbol "i", error 024: "break" or "continue" is out of context
            if(GetPlayerDistanceFromPlayer(playerid, i) <= MAX_DISTANCIA) // error 017: undefined symbol "playerid"
            {
                ShowPlayerNameTagForPlayer(playerid,i,true); // error 017: undefined symbol "playerid"
            }
            else
            {
                ShowPlayerNameTagForPlayer(playerid,i,false); // error 017: undefined symbol "playerid"
            }
        }
    }
}
Reply
#6

http://pastebin.com/Seseuh2x
PHP код:
#include <foreach> 
Reply
#7

fatal error 100: cannot read from file: "YSI\internal\y_natives"

+rep luan

Mas nгo tem como fazer sem essas includes?
Nгo queria colocar umas includes q eu nгo uso e nem sei pra q serve no meu GM

Aquilo parece um loop sei lб, da esse help ai
Reply
#8

Muda aquela linha por:

PHP код:
for(new iMAX_PLAYERSi++) 
Reply
#9

Sim, como o PT falou, й possнvel sim.
PHP код:
for(new id 0GetPlayerPoolSize(); id <= ji++) {
    

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)