/Enter & /Exit - 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: /Enter & /Exit (
/showthread.php?tid=81769)
/Enter & /Exit -
zaq - 13.06.2009
Enter;
Код:
if (PlayerToPoint(3.0, playerid,-2442.6216,754.3491,35.1719))
{ // LVPD
SetPlayerInterior(playerid,6);
PlayerInfo[playerid][pInt] = 6;
SetPlayerVirtualWorld(playerid,0);
PlayerInfo[playerid][pVirWorld] = 0;
SetPlayerPos(playerid,6.091179,-29.271898,1003.549438);
}
Exit;
Код:
if (PlayerToPoint(3.0, playerid,6.091179,-29.271898,1003.549438))
{ // LVPD
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
SetPlayerVirtualWorld(playerid,0);
PlayerInfo[playerid][pVirWorld] = 0;
SetPlayerPos(playerid,-2442.6216,754.3491,35.1719);
}
?
Re: /Enter & /Exit -
efeX - 13.06.2009
You can't just set the interior and it will put you inside, you must get the coordinates when you are INSIDE the interior.
Re: /Enter & /Exit -
miokie - 13.06.2009
Quote:
Originally Posted by efeX
You can't just set the interior and it will put you inside, you must get the coordinates when you are INSIDE the interior.
|
If you actually looked at the code, He has done the inside positions...
Re: /Enter & /Exit -
Abernethy - 13.06.2009
Please explain your problem, & not just post your stuff up.
Turn
pawn Код:
// DisableInteriorEnterExits();
Off, & just /save & /interior inside the Police Station Interior you're using. If this isn't what the problem is don't come crying, because you're the one who didn't tell us.
Re: /Enter & /Exit -
efeX - 14.06.2009
Quote:
Originally Posted by Miokie*
Quote:
Originally Posted by efeX
You can't just set the interior and it will put you inside, you must get the coordinates when you are INSIDE the interior.
|
If you actually looked at the code, He has done the inside positions...
|
Then what's wrong genius?
Re: /Enter & /Exit -
zaq - 14.06.2009
I do not know English
much
Write the correct codes?
Re: /Enter & /Exit -
MenaceX^ - 14.06.2009
The coords must be wrong, if they aren't, debug it.
Re: /Enter & /Exit -
efeX - 15.06.2009
Quote:
Originally Posted by MenaceX^
The coords must be wrong, if they aren't, debug it.
|
Back to what i said...
"you must get the coordinates when you are INSIDE the interior."
The coordinates are obviously wrong.