OnPlayerWeaponShot - BULLET_HIT_TYPE_OBJECT - Object Stream
#3

Thanks pds2k12 and BigETI later <3, I suppose this would work.

pawn Code:
public OnShootDynamicObject(playerid, weaponid, objectid, Float:fX, Float:fY, Float:fZ)
{
    new
        Float:ObjectPos[3], string[ 90 ];
    GetDynamicObjectPos(objectid, ObjectPos[0], ObjectPos[1], ObjectPos[2]);

    CreateExplosion(ObjectPos[0], ObjectPos[1], ObjectPos[2], 10, 15.0)

    format(string, sizeof(string), "You are shooting at ObjectID: %i - X: %f - Y: %f - Z: %f", objectid, fX, fY, fZ);
    SendClientMessage(playerid, -1, string);

    DestroyDynamicObject( objectid );
    return true;
}
Updated Streamer by BigETI - Click Me!

EDIT

@BigETI: Thanks for the information, I've noticed that you've done it internally.
Reply


Messages In This Thread
OnPlayerWeaponShot - BULLET_HIT_TYPE_OBJECT - Object Stream - by Noliax8 - 18.01.2014, 16:45
Re: OnPlayerWeaponShot - BULLET_HIT_TYPE_OBJECT - Object Stream - by MP2 - 18.01.2014, 16:48
Re: OnPlayerWeaponShot - BULLET_HIT_TYPE_OBJECT - Object Stream - by Patrick - 18.01.2014, 16:57
AW: OnPlayerWeaponShot - BULLET_HIT_TYPE_OBJECT - Object Stream - by BigETI - 18.01.2014, 17:06
Re : OnPlayerWeaponShot - BULLET_HIT_TYPE_OBJECT - Object Stream - by Noliax8 - 18.01.2014, 18:05

Forum Jump:


Users browsing this thread: 1 Guest(s)