26.06.2014, 17:04
Try (in callback OnPlayerUpdate):
Код:
if(IsPlayerInRangeOfPoint(playerid,75.0,819.6044,-1354.2113,24.3107)) { if(!GetPVarInt(playerid,"stream")) { SetPVarInt(playerid,"stream",1); PlayAudioStreamForPlayer(playerid, link,819.6044,-1354.2113,24.3107,75.0, 1); } } else { if(GetPVarInt(playerid,"stream")) { DeletePVar(playerid,"stream"); StopAudioStreamForPlayer(playerid); } }