19.01.2015, 14:57
(
Последний раз редактировалось zqkRazer; 23.01.2015 в 15:51.
)
Galera, lanзaram um novo sorvete chamado "la pirula" й lб tem uma opзгo de crashar players, como faзo pra bloquear o crash do WEAPON CRASH ?
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. { banexblabla fecha chave fecha chave returno um fecha chave
#include <a_samp>
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print("------FS-----player------bugger------");
print("--------------------------------------\n");
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
public OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ)
{
if(hittype == BULLET_HIT_TYPE_PLAYER)
{
if(!(-20.0 <= fX <= 20.0) || !(-20.0 <= fY <= 20.0) || !(-20.0 <= fZ <= 20.0))
{
Kick(playerid);
return 0;
}
}
return 1;
}