Sound is supposed to be played at a certain position
#7

You may put it OnPlayerUpdate but you need to make a variable.

pawn Код:
new bool:calledSound[MAX_PLAYERS char];

//OnPlayerUpdate
if(IsPlayerInRangeOfPoint(...))
{
    if(calledSound{playerid} == false) {
        //play sound
        calledSound{playerid} = true;
    }
}


else
{
    if(calledSound{playerid} == true)  calledSound{playerid} =false;

}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)