Interior Problem? - 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)
+--- Thread: Interior Problem? (
/showthread.php?tid=628531)
Interior Problem? -
Triggerz - 11.02.2017
Hey guys, I'm going through a problem that I have no idea how to fix. I've already researched it but found nothing.
The problem is when I try to get to an interior, I just end up in the air with nothing around me. I find it very annoying, I've tried everything possible but can't seem to work it out.
Here's the code:
Код:
SetPlayerVirtualWorld(playerid, 0);
SetPlayerInterior(playerid, 2);
SetPlayerPos(playerid, 1267.663208,-781.323242,1091.906250);
I got the interior id and coords from:
http://weedarr.wikidot.com/interior .
I want the code to take me to Madd Dogg's Mansion.
Thanks a lot,
Look forward to hearing from you.
Re: Interior Problem? -
RyderX - 11.02.2017
PHP код:
CMD:madddog(playerid,params[])
{
SetPlayerInterior(playerid, 2);
SetPlayerPos(playerid, 1267.663208,-781.323242,1091.906250);
return 1;
}
Re: Interior Problem? -
Triggerz - 11.02.2017
Quote:
Originally Posted by RyderX
PHP код:
CMD:madddog(playerid,params[])
{
SetPlayerInterior(playerid, 2);
SetPlayerPos(playerid, 1267.663208,-781.323242,1091.906250);
return 1;
}
|
Still doesn't work mate.
Код:
if (!strcmp("/henter", cmdtext))
{
if (IsPlayerInRangeOfPoint(playerid, 1.0, X, Y, Z))
{
SetPlayerInterior(playerid, 2);
SetPlayerPos(playerid, 1267.663208,-781.323242,1091.906250);
}
return 1;
}
return 0;
}
Re: Interior Problem? -
RyderX - 11.02.2017
Hey, you wrote the interior id wronger.
Try this now.
PHP код:
if (!strcmp("/henter", cmdtext))
{
if (IsPlayerInRangeOfPoint(playerid, 1.0, X, Y, Z))
{
SetPlayerInterior(playerid, 5);
SetPlayerPos(playerid, 1267.663208,-781.323242,1091.906250);
}
return 1;
}
return 0;
}