[HELP] - Damage to object
#7

Quote:
Originally Posted by Jamester
Посмотреть сообщение
Use
PHP код:
public OnPlayerShootDynamicObject(playeridweaponidSTREAMER_TAG_OBJECT objectidFloat:xFloat:yFloat:z
Quote:
Originally Posted by Jamester
Посмотреть сообщение
Ah shit it does not, didn't read it fully!
Sorry Sick don't kill me
No results, Sad, With the Desert Eagle It worked out

Код:
public OnPlayerShootDynamicObject(playerid, weaponid, STREAMER_TAG_OBJECT objectid, Float:x, Float:y, Float:z) 
{
    if(weaponid == 9)
    {
        for(new i = 1; i <= MAX_TREES; i++)
        if(IsPlayerInRangeOfPoint(playerid, 1.5, Trees[i][0], Trees[i][1], Trees[i][2]))
        {
            Destroy[i]++;
            PlayerPlaySound(playerid,1190,0.0,0.0,0.0);

            if(Destroy[i] == 20)
            {
                Destroy[i] = 0;
                DestroyDynamicObject(TreeObject[i]);
                Trees[i][0] = -1;
                Trees[i][1] = -1;
                Trees[i][2] = -1;
            }
        }
    }
    return 1;
}
Reply


Messages In This Thread
[HELP] - Damage to object - by JhefTFJ - 07.01.2017, 14:58
Re: [HELP] - Damage to object - by Vince - 07.01.2017, 15:08
Re: [HELP] - Damage to object - by SickAttack - 07.01.2017, 15:11
Re: [HELP] - Damage to object - by J0sh... - 07.01.2017, 15:19
Re: [HELP] - Damage to object - by SickAttack - 07.01.2017, 15:20
Re: [HELP] - Damage to object - by J0sh... - 07.01.2017, 15:22
Re: [HELP] - Damage to object - by JhefTFJ - 07.01.2017, 15:56
Re: [HELP] - Damage to object - by SickAttack - 07.01.2017, 16:44
Re: [HELP] - Damage to object - by JhefTFJ - 07.01.2017, 18:14
Re: [HELP] - Damage to object - by Vince - 07.01.2017, 19:02

Forum Jump:


Users browsing this thread: 1 Guest(s)