Help House :D
#8

Quote:
Originally Posted by astanalol
Посмотреть сообщение
i want know only
when player exit back to his pos ?
idk how to make it
like any house system FS
i want know how to made exit pos when i create the dynamic house
This is one basic script which saves before teleport to the interior and loads back the old location

pawn Код:
new Float:currentp[MAX_PLAYERS][4]; //top of the script (which saves the player current pos)

//saving the player pos before theleporting to the interior
GetPlayerPos(playerid,currentp[playerid][0],currentp[playerid][1],currentp[playerid][2]); // save x,y and z for this player.
GetPlayerFacingAngle(playerid,currentp[playerid][3]);
//teleport the player inside the house
SetPlayerPos(playerid, HouseInfo[houseid][HouseiX], HouseInfo[houseid][HouseiY], HouseInfo[houseid][HouseiZ]);
SetPlayerInterior(playerid, HouseInfo[houseid][Housei]);
       

//This must be the exit cmd
SetPlayerPos(playerid, currentp[playerid][0],currentp[playerid][1],currentp[playerid][2]);
SetPlayerInterior(playerid, 0);
Reply


Messages In This Thread
Help House :D - by astanalol - 10.01.2015, 23:31
Re: Help House :D - by CalvinC - 10.01.2015, 23:42
Re: Help House :D - by astanalol - 10.01.2015, 23:54
Re: Help House :D - by astanalol - 11.01.2015, 08:55
Re: Help House :D - by astanalol - 11.01.2015, 10:08
Re: Help House :D - by Ironboy - 11.01.2015, 10:13
Re: Help House :D - by astanalol - 11.01.2015, 10:16
Re: Help House :D - by Ironboy - 11.01.2015, 10:30

Forum Jump:


Users browsing this thread: 1 Guest(s)