Sound System
#5

pawn Код:
#include a_samp
#include streamer // For Dynamics
new YourVariable;
public OnGameModeInit()
{
   
    YourVariable = CreateDynamicRectangle(Float:minx, Float:miny, Float:maxx, Float:maxy, worldid = -1, interiorid = -1, playerid = -1);
    return 1;
}
public OnPlayerEnterDynamicArea(playerid, areaid)
{
    if(areaid == YourVariable )
    {
        PlayAudioStreamForPlayer(playerid, "http://mp3dos.com/assets/songs/15000-15999/15726-am-i-wrong-nico-vinz--1411219503.mp3");

        SetPlayerTime(playerid,24,0);
    }

    return 1;
}
public OnPlayerLeaveDynamicArea(playerid, areaid)
{
    if(areaid == YourVariable )
    {
        SetPlayerTime(playerid,8,0);
        StopAudioStreamForPlayer(playerid);
    }
    return 1;
}
Reply


Messages In This Thread
Sound System - by Vinicin - 21.10.2014, 18:11
Re: Sound System - by Pottus - 21.10.2014, 18:14
Re: Sound System - by Pawnify - 21.10.2014, 18:16
Re: Sound System - by Vinicin - 21.10.2014, 18:22
Re: Sound System - by gurmani11 - 21.10.2014, 18:28
Re: Sound System - by Pottus - 21.10.2014, 18:35
Re: Sound System - by gurmani11 - 21.10.2014, 18:46

Forum Jump:


Users browsing this thread: 1 Guest(s)