House Maker Problem
#1

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?
Reply
#2

SetPlayerInterior
Reply
#3

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;
}
Reply
#4

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;
}
Reply
#5

What's the problem? With the Virtual World / Interior?
Reply
#6

Thanks an assload notec!
Reply
#7

Quote:
Originally Posted by Frazz (FRLS)
Thanks an assload notec!
Not a problem Glad to help!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)