gangzone help
#1

How to write a dynamic gangzone when players enter gangzone play music, when you quit stop music
Reply
#2

help me
Reply
#3

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;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)