07.05.2015, 14:32
I have a created a command that insert in db the info of the created house.
/createhouse <price> <interiorID>
Ok for now good when i enter the InteriorID it save the interior positions in the db for example
ID - 5 - 318.564971,1118.209960,1083.882812
When i enter in the house i use this
But when 2 people from diferent houses enter with the same interior is it going to put hem on 1 place?
/createhouse <price> <interiorID>
Ok for now good when i enter the InteriorID it save the interior positions in the db for example
ID - 5 - 318.564971,1118.209960,1083.882812
When i enter in the house i use this
Код:
CMD:enter(playerid, params[]) { if(IsPlayerInRangeOfPoint(playerid, 2.0, HInfo[HouseCount][XPos], HInfo[HouseCount][YPos], HInfo[HouseCount][ZPos])) { SetPlayerPos(playerid, HInfo[HouseCount][IntXPos], HInfo[HouseCount][IntYPos], HInfo[HouseCount][IntZPos]); SetPlayerInterior(playerid,HInfo[HouseCount][InteriorID]); } return 1; }