05.06.2015, 18:20
I'd recommend using dynamic areas from Incognito Streamer Plugin.
pawn Код:
#include <streamer>
new gGangzoneArea;
public OnGameModeInit()
{
gGangzoneArea = CreateDynamicArea(minx, miny, maxx, maxy);
return 1;
}
public OnPlayerEnterDynamicArea(playerid, areaid)
{
if(areaid == gGangzoneArea)
{
PlayAudioStreamForPlayer(playerid, "url");
return 1;
}
return 0;
}
public OnPlayerLeaveDynamicArea(playerid, areaid)
{
if(areaid == gGangzoneArea)
{
StopAudioStreamForPlayer(playerid);
return 1;
}
return 0;
}