18.04.2011, 20:42
Make sure the explosion type to be created is a type which creates sound, however, if you can't get it to work after changing the type you can use the following snippet.
You might want to re-write it!
pawn Код:
new Float:X, Float:Y, Float:Z;
GetPlayerPos(playerid, X, Y, Z);
foreach(Player, i)
{
// If is near the playerid within 20 range, and their interior is the same..
if (IsPlayerInRangeOfPoint(i, 20, X, Y, Z) && (GetPlayerInterior(i) == GetPlayerInterior(playerid)))
{
// Play sound for 'i'.
}
return 0;
}

