16.01.2014, 16:43
pawn Код:
public OnPlayerWeaponShot( playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ )
{
switch( hittype )
{
case BULLET_HIT_TYPE_OBJECT:
{
if( IsValidObject( hitid ) )
{
SendClientMessage( playerid, -1, "You shot an object and it was destroyed !" );
DestroyObject( hitid );
}
}
}
return 1;
}