19.12.2015, 18:36
https://sampwiki.blast.hk/wiki/OnPlayerWeaponShot
PHP код:
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;
}