SA-MP Forums Archive
Please any one helpp me !!!!! - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Please any one helpp me !!!!! (/showthread.php?tid=536269)



Please any one helpp me !!!!! - PAF - 08.09.2014

Код:
public OnPlayerWeaponShot( playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ )
{
    if( hittype == BULLET_HIT_TYPE_PLAYER ) // Bullet Crashing uses just this hittype
    {
        if( !( -20.0 <= fX <= 20.0 ) || !( -20.0 <= fY <= 20.0 ) || !( -20.0 <= fZ <= 20.0 ) ) // a valid offset, it's impossible that a offset bigger than 20 is legit (less than 0 is impossible, but still, let's check for it, just for the future)
        {
            /*
                If you want, here you can kick the cheater
            */
            return 0; // let's desynchronize that bullet, so players won't crash
        }
    }
    return 1;
}



Re: Please any one helpp me !!!!! - DavidBilla - 08.09.2014

What is it that you need help with?