[spoiler]
forward EPICMUSIC();
public EPICMUSIC()
{
for(new p1; p1 <= MAX_PLAYERS; p1++)
{
for(new p2; p2 <= MAX_PLAYERS; p2++)
{
if(IsPlayerConnected(p1)&&IsPlayerConnected(p2))
{
new Float:p1x, Float:p1y, Float:p1z, Float:p2x, Float:p2y, Float:p2z;
GetPlayerPos(p1, p1x, p1y, p1z);
GetPlayerPos(p2, p2x, p2y, p2z);
if(IsPlayerInRangeOfPoint(playerid, 10, 10, 10, 10)
//pour les coordonnées je n'ai aucune idée pour que ca soit environ a 100m
{
PlayAudioStreamForPlayer(playerid, "url de la musique");
}
return 1;
}
}
}
}
}
public OnGameModeInit()
{
SetTimer("EPICMUSIC", 1000, true); //true pour que le timer se répète
}
[/spoiler]
c'est ça ?
je suis désolé je fais de mon mieux ...