[Ajuda] Algum anti crasher 0.3.7
#4

Quote:
Originally Posted by RodrigoMSR
View Post
Tente:
PHP Code:
public OnPlayerWeaponShot(playeridweaponidhittypehitidFloat:fXFloat:fYFloat:fZ)
{
    if(!(
22 <= weaponid <= 34 || weaponid == 38) || !(<= hittype <= 4))
    {
        
Kick(playerid);
         return 
0;
    }
    if(
hittype == BULLET_HIT_TYPE_VEHICLE || hittype == BULLET_HIT_TYPE_PLAYER)
    {
        if(
BadFloat(fX) || BadFloat(fY) || BadFloat(fZ))
        {
            
Kick(playerid);
            return 
0;
        }
    }
    return 
1;
}
stock BadFloat(Float:f) return (>= 1000.0 || <= -1000.0); 
Se nгo adiantar, pode ser modificaзхes invбlidas em veнculos, use: https://sampforum.blast.hk/showthread.php?pid=1671500#pid1671500.
- Weapon ID checking after OnPlayerWeaponShot in case the script doesn't filter it.
https://sampforum.blast.hk/showthread.php?tid=581259

Ou seja, jб foi corrigido pelo prуprio client.

Esse novo cheat que crasha players й de outra forma, efetuei um debug nele e jб atualizei a proteзгo de meu servidor, caso queira eu te passo via MP.
Reply


Messages In This Thread
Algum anti crasher 0.3.7 - by Arleann - 05.05.2018, 15:17
Re: Algum anti crasher 0.3.7 - by RodrigoMSR - 05.05.2018, 16:08
Re: Algum anti crasher 0.3.7 - by Arleann - 06.05.2018, 14:37
Re: Algum anti crasher 0.3.7 - by XandyMello - 07.05.2018, 00:19
Re: Algum anti crasher 0.3.7 - by Arleann - 07.05.2018, 19:04

Forum Jump:


Users browsing this thread: 1 Guest(s)