11.01.2015, 10:30
Quote:
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 |
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);