Problem with OnPlayerWeaponShot
#1

Hello, how can I protect object before the shoot?

Код:
new myobject = CreateObject(...

public OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ)
{
    if(hittype == BULLET_HIT_TYPE_OBJECT)
    {
        if(hitid == myobject)
        {
            return 0; // Protect?
        }
    }
    
    return 1;
}
And next question. It's only work for CreateObject or CreateDynamicObject too?
Reply


Messages In This Thread
Problem with OnPlayerWeaponShot - by Midzi - 22.07.2015, 11:47
Re: Problem with OnPlayerWeaponShot - by JaydenJason - 22.07.2015, 12:31
Re: Problem with OnPlayerWeaponShot - by nezo2001 - 22.07.2015, 12:50
Re: Problem with OnPlayerWeaponShot - by Midzi - 22.07.2015, 12:53
Re: Problem with OnPlayerWeaponShot - by Toxik - 22.07.2015, 13:07
Re: Problem with OnPlayerWeaponShot - by Crystallize - 22.07.2015, 13:27
Re: Problem with OnPlayerWeaponShot - by Toxik - 22.07.2015, 13:31

Forum Jump:


Users browsing this thread: 1 Guest(s)