gangzone help - 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: gangzone help (
/showthread.php?tid=576529)
gangzone help -
oppo1234 - 05.06.2015
How to write a dynamic gangzone when players enter gangzone play music, when you quit stop music
Re: gangzone help -
oppo1234 - 05.06.2015
help me
Re: gangzone help -
dusk - 05.06.2015
I'd recommend using dynamic areas from Incognito Streamer Plugin.
pawn Код:
#include <streamer>
new gGangzoneArea;
public OnGameModeInit()
{
gGangzoneArea = CreateDynamicArea(minx, miny, maxx, maxy);
return 1;
}
public OnPlayerEnterDynamicArea(playerid, areaid)
{
if(areaid == gGangzoneArea)
{
PlayAudioStreamForPlayer(playerid, "url");
return 1;
}
return 0;
}
public OnPlayerLeaveDynamicArea(playerid, areaid)
{
if(areaid == gGangzoneArea)
{
StopAudioStreamForPlayer(playerid);
return 1;
}
return 0;
}