29.12.2011, 09:19
ok i made this map for my new years eve party now i wanna know how i make a shoutcast stream within a radius can you help please?
for(new i = 0; i < MAX_PLAYERS; i++) {
if(IsPlayerConnected(i)) {
if(IsPlayerInRangeOfPoint(i,10,pointX,pointY,pointZ)) {
PlayAudioStreamForPlayer(i,audio here);
}
}
}
Add PlayAudioStreamForPlayer in a command or OnPlayerSpawn. |