Quote:
Originally Posted by RodrigoMSR
Tente:
PHP Code:
public OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ)
{
if(!(22 <= weaponid <= 34 || weaponid == 38) || !(0 <= 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 (f >= 1000.0 || f <= -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.