14.07.2011, 15:08
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;
}