Interior
#1

I need help...

this is if i enter interior..
Код:
GetPlayerInterior
What i need to write if i leave it ?

I thin it need to be something similar like
Код:
PlayerExitInterior
Plz say What need to write if i exit interior..
My full code..89% done

Код:
public OnPlayerInteriorChange(playerid,newinteriorid,oldinteriorid)
{
	if(GetPlayerInterior(playerid) == 3)
	{
		PlayerPlaySound(playerid, 1062, 2496.65,-1696.55 ,1014.74);
	}
	else if(???????????????Interior(playerid) == 3)
	{
	  PlayerPlaySound(playerid, 0, 0.0, 0.0, 0.0);
	}
}
Reply
#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
#3

pawn Код:
public OnPlayerInteriorChange(playerid,newinteriorid,oldinteriorid)
{
    if(newinteriorid == 3 && oldinteriorid == 0)
    {
        PlayerPlaySound(playerid, 1062, 2496.65,-1696.55 ,1014.74);
    }
    else if(newinteriorid == 0 && oldinteriorid == 3)
    {
      PlayerPlaySound(playerid, 0, 0.0, 0.0, 0.0);
    }
    return 1;
}
Reply
#4

Other interiors have interior ID 3
Reply
#5

Quote:
Originally Posted by $ЂЯĢ
pawn Код:
public OnPlayerInteriorChange(playerid,newinteriorid,oldinteriorid)
{
    if(newinteriorid == 3 && oldinteriorid == 0)
    {
        PlayerPlaySound(playerid, 1062, 2496.65,-1696.55 ,1014.74);
    }
    else if(newinteriorid == 0 && oldinteriorid == 3)
    {
      PlayerPlaySound(playerid, 0, 0.0, 0.0, 0.0);
    }
    return 1;
}
Good Sound plays BUT DONT STOPS ! IF i exit interioor or enter another !
Reply
#6

Your fault since you didn't manage to obtain knowledge that specific sounds can be trned off only with specific sounds.
pawn Код:
public OnPlayerInteriorChange(playerid,newinteriorid,oldinteriorid)
{
    if(newinteriorid == 3 && oldinteriorid == 0)
    {
        PlayerPlaySound(playerid, 1062, 2496.65,-1696.55 ,1014.74);
    }
    else if(newinteriorid == 0 && oldinteriorid == 3)
    {
      PlayerPlaySound(playerid, 1063, 0.0, 0.0, 0.0);
    }
    return 1;
}

Quote:
Originally Posted by Joe Staff
Other interiors have interior ID 3
He will care about that when he realized that. We are not here to script for other people, but for hlep them with problems. And this is so fucking simple that this topic isn't even needed.
Reply
#7

Quote:
Originally Posted by $ЂЯĢ
Your fault since you didn't manage to obtain knowledge that specific sounds can be trned off only with specific sounds.
pawn Код:
public OnPlayerInteriorChange(playerid,newinteriorid,oldinteriorid)
{
    if(newinteriorid == 3 && oldinteriorid == 0)
    {
        PlayerPlaySound(playerid, 1062, 2496.65,-1696.55 ,1014.74);
    }
    else if(newinteriorid == 0 && oldinteriorid == 3)
    {
      PlayerPlaySound(playerid, 1063, 0.0, 0.0, 0.0);
    }
    return 1;
}

Quote:
Originally Posted by Joe Staff
Other interiors have interior ID 3
He will care about that when he realized that. We are not here to script for other people, but for hlep them with problems. And this is so fucking simple that this topic isn't even needed.
OMG TNX SO MUCH..

YOU Realy are "GANGSTA !! "


LOCK , CLOSE , DELETE !
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)