30.10.2009, 18:25
In all honesty I didn't know that OnPlayerInteriorChange even existed.
Replace X,Y,Z to be the coordinates of the inside of CJ's house.
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);
}
}

