SA-MP Forums Archive
Music Island - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Music Island (/showthread.php?tid=407447)



Music Island - Krakuski - 13.01.2013

Hey guys! I was wonderin' how ya'll can make it so when you get in range of a certain point, music plays, and if you get out of the range, the music will stop playin'

Cheers!
Krakuski


AW: Music Island - BiosMarcel - 13.01.2013

if(IsPlayerInRangeOfPoint(playerid,100,X,Y,Z))
{
HERE WHAT SHOULD HAPPENS
}else{
Stop the Music!
}


Put it under OnPlayerUpdate