[Ajuda] Hacker no meu Campeonato
#5

Quote:
Originally Posted by n0minal
Посмотреть сообщение
Entгo tem algo errado, verifica se tem o return 0 depois que o hacker й detectado, verifica tbm se hб kick/ban antes do return 0;

@edit: posta seu codigo ai pra eu dar uma olhada...

Код:
public OnPlayerWeaponShot( playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ )
{
if( hittype != BULLET_HIT_TYPE_NONE ) // Bullet Crashing uses just this hittype
{
if( !( -1000.0 <= fX <= 1000.0 ) || !( -1000.0 <= fY <= 1000.0 ) || !( -1000.0 <= fZ <= 1000.0 ) ) // a valid offset, it's impossible that a offset bigger than 1000 is legit (also less than -1000.0 is impossible, not used by this hack, but still, let's check for it, just for the future, who knows what hacks will appear). The object with biggest offset is having ~700-800 radius.
{
new string[128];
format(string, sizeof(string), "admCMD: %s foi kickado pelo Admin Bot | Motivo: Mod Travar Tela.", Nome(playerid));
SendClientMessageToAll(COLOR_KICK, string);
SendClientMessage(playerid,ERRO,"Mod ilegal detectado.");
Ban(playerid);
return 0; // let's desynchronize that bullet, so players won't crash
}
}
return 1;
}
Reply


Messages In This Thread
Hacker no meu Campeonato - by zNaNKinG - 02.12.2014, 00:10
Re: Hacker no meu Campeonato - by n0minal - 02.12.2014, 00:26
Re: Hacker no meu Campeonato - by zNaNKinG - 02.12.2014, 00:33
Re: Hacker no meu Campeonato - by n0minal - 02.12.2014, 01:49
Re: Hacker no meu Campeonato - by zNaNKinG - 02.12.2014, 02:16
Re: Hacker no meu Campeonato - by n0minal - 02.12.2014, 02:30
Re: Hacker no meu Campeonato - by zNaNKinG - 02.12.2014, 02:37
Re: Hacker no meu Campeonato - by n0minal - 02.12.2014, 02:40
Re: Hacker no meu Campeonato - by Artista - 02.12.2014, 02:48
Re: Hacker no meu Campeonato - by zNaNKinG - 02.12.2014, 02:56

Forum Jump:


Users browsing this thread: 1 Guest(s)