10.01.2015, 18:43
No idea, how to make it properly. =(
Maybe you can destroy it, if player shot in object?
Would be something like this:
Maybe you can destroy it, if player shot in object?
Would be something like this:
pawn Код:
public OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ)
{
if(hittype == BULLET_HIT_TYPE_OBJECT)
{
if(hitid >= Object[0] && hitid <= Object[2])
{
DestroyObject(hitid);
}
}
return 1;
}