SA-MP Forums Archive
[Off] Code funcionante - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Off] Code funcionante (/showthread.php?tid=539053)



Code funcionante - SatanMessenger - 26.09.2014

Galera peguei um code de anti-crash que aparece um monte de coisa na tela й trava o pc do player, mais umas 14 pessoas foi banida des depois de eu ter colocado a 3 dias funciona 100%?

Код:
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.
        {
            BanEx(playerid, "WeaponCrash");
            return 0; // let's desynchronize that bullet, so players won't crash
        }
    }
    return 1;
}



Re: Code funcionante - DannielCooper - 26.09.2014

Esse code nгo й desse tipo de Crash que vocк quer.


Re: Code funcionante - SatanMessenger - 26.09.2014

Sabe outro?

O crash й assim




Re: Code funcionante - Larceny - 26.09.2014

Seu gamemode tem alguma classe?

Tente tambйm usar SetSpawnInfo antes dele dar spawn.