Interior - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Interior (
/showthread.php?tid=105671)
Interior -
GaGlets(R) - 30.10.2009
I need help...
this is if i enter interior..
What i need to write if i leave it ?
I thin it need to be something similar like
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);
}
}
Re: Interior -
Joe Staff - 30.10.2009
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.
Re: Interior -
Sergei - 30.10.2009
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;
}
Re: Interior -
Joe Staff - 30.10.2009
Other interiors have interior ID 3
Re: Interior -
GaGlets(R) - 30.10.2009
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 !
Re: Interior -
Sergei - 30.10.2009
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.
Re: Interior -
GaGlets(R) - 30.10.2009
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 !