30.08.2011, 07:14
why not like this?
PHP код:
public OnPlayerDeath(playerid, killerid, reason)
{
new Float:x,Float:y,Float:z;
GetPlayerPos(playerid,x,y,z);
for(new t;t<MAX_PLAYERS;t++)
if(IsPlayerInRangeOfPoint(t,5.0,x,y,z))
{
Audio_PlayStream//or whatever for playerid "t"!!!
return 1;
}
return 1;
}