House System enter question
#1

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

Код:
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;
}
But when 2 people from diferent houses enter with the same interior is it going to put hem on 1 place?
Reply


Messages In This Thread
House System enter question - by Zloto - 07.05.2015, 14:32
Re: House System enter question - by Ahmad45123 - 07.05.2015, 14:41
Re: House System enter question - by ZouHeR - 07.05.2015, 14:49
Re: House System enter question - by Zloto - 07.05.2015, 15:23
Re: House System enter question - by Ahmad45123 - 07.05.2015, 15:33
Re: House System enter question - by Zloto - 07.05.2015, 16:14

Forum Jump:


Users browsing this thread: 1 Guest(s)