House Maker 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: House Maker Problem (
/showthread.php?tid=72215)
House Maker Problem -
FrazZ - 06.04.2009
I have antironix's house maker and I made a few houses. I bought a house, entered it (virtual worlds work, because I tested with my friend) and then I exited it and I came out in a different virtual world. (Meaning, There were no car spawns anywhere, also gives a hint I wasnt in the same VW.) So im asking, How can I fix that?
Re: House Maker Problem -
elvago - 06.04.2009
SetPlayerInterior
Re: House Maker Problem -
FrazZ - 06.04.2009
I tryed that, and set the interior to 0:
Код:
dcmd_exithouse(playerid,params[])
{
#pragma unused params
if(GetPlayerInterior(playerid)==playerinterior[playerid])
{
SetPlayerPos(playerid, housex, housey, housez);
SetPlayerInterior(playerid, 0);
}
else
{
SendClientMessage(playerid, c_r, "You have not entered a house!");
}
return 1;
}
Re: House Maker Problem -
notec100 - 06.04.2009
Quote:
Originally Posted by Frazz (FRLS)
I tryed that, and set the interior to 0:
Код:
dcmd_exithouse(playerid,params[])
{
#pragma unused params
if(GetPlayerInterior(playerid)==playerinterior[playerid])
{
SetPlayerPos(playerid, housex, housey, housez);
SetPlayerInterior(playerid, 0);
}
else
{
SendClientMessage(playerid, c_r, "You have not entered a house!");
}
return 1;
}
|
For the /exit command I just added in SetPlayerVirtualWorld(playerid, 0); and it worked hope that helped :P
HELL Heres my exact exit too lols

forgot to just add it too lol:
Код:
dcmd_exit(playerid,params[])
{
#pragma unused params
if(GetPlayerInterior(playerid)==playerinterior[playerid])
{
SetPlayerPos(playerid, housex, housey, housez);
SetPlayerInterior(playerid, playerworld[playerid]);
SetPlayerVirtualWorld(playerid, 0);
}
else
{
SendClientMessage(playerid, c_r, "You have not entered a house!");
}
return 1;
}
Re: House Maker Problem -
MenaceX^ - 06.04.2009
What's the problem? With the Virtual World / Interior?
Re: House Maker Problem -
FrazZ - 06.04.2009
Thanks an assload notec!
Re: House Maker Problem -
notec100 - 07.04.2009
Quote:
Originally Posted by Frazz (FRLS)
Thanks an assload notec! 
|
Not a problem

Glad to help!