Interior
#2

In all honesty I didn't know that OnPlayerInteriorChange even existed.

pawn Код:
public OnPlayerInteriorChange(playerid,newinteriorid,oldinteriorid)
{
  if(newinteriorid==3)
  {
    if(IsPlayerInRangeOfPoint(playerid,30.0,x,y,z))PlayerPlaySound(playerid,1062,0.0,0.0,0.0); //The coordinate of this sound doesn't matter
  }
  if(oldinteriorid==0)
  {
    PlayerPlaySound(playerid,1063,0.0,0.0,0.0);
  }
}
Replace X,Y,Z to be the coordinates of the inside of CJ's house.
Reply


Messages In This Thread
Interior - by GaGlets(R) - 30.10.2009, 18:18
Re: Interior - by Joe Staff - 30.10.2009, 18:25
Re: Interior - by Sergei - 30.10.2009, 18:27
Re: Interior - by Joe Staff - 30.10.2009, 18:30
Re: Interior - by GaGlets(R) - 30.10.2009, 18:43
Re: Interior - by Sergei - 30.10.2009, 18:46
Re: Interior - by GaGlets(R) - 30.10.2009, 18:51

Forum Jump:


Users browsing this thread: 1 Guest(s)