How can I make this work?
#1

pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
    for(new h = 0; h < sizeof(HouseInfo); h++)
    {
        if ( pickupid == HousePickup[h] )
        {
            new Float:X, Float:Y, Float:Z;
            GetPlayerPos(playerid, X,Y,Z);
            PlayerPlaySound(playerid, 1139, X, Y, Z);
        }
    }
    return 1;
}
How can I stop my function to play the sound all the time when I'm on my house pickup? If I stay on the house pickup all the time, it just reproduces the sound all the time and it becomes annoying.
Thanks for help.
Reply


Messages In This Thread
How can I make this work? - by GloomY - 23.05.2014, 15:43
Re : How can I make this work? - by S4t3K - 23.05.2014, 15:45
Re: How can I make this work? - by sl!x - 23.05.2014, 15:45
Re: How can I make this work? - by GloomY - 23.05.2014, 16:00

Forum Jump:


Users browsing this thread: 1 Guest(s)