14.11.2010, 16:28
Mesmo cуdigo do DraKiNs
Nгo sei se vai funcionar como vocк quer..Mas tenta ai para ver
pawn Код:
// ongamemode init
SetTimer("ChecarSom",2000,true);
// final gm
forward ChecarSom();
public ChecarSom()
{
for(new i; i < MAX_PLAYERS ; i++){
if(IsPlayerInRangeOfPoint(i,10.0,x,y,z)) // coordenadas ,10.0 = distancia
{
PlayerPlaySound(playerid,1130, 0.0, 0.0, 10.0); //coordenadas
}
else{
PlayerPlaySound(playerid,1063,0.0,0.0,0.0); //aqui farб com que o som pare ou pelo menos fique mudo
}
}
return true;
}