19.12.2015, 14:41
Hello guys, i need anti destroying box how i can get it ?
public OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ)
{
if ( hittype == BULLET_HIT_TYPE_OBJECT && hitid == [Box object ID] ) {
// playerid shot box, here you can send message to admins
}
return 1;
}