DisablePlayerCheckpoint when gets away from it
#1

I'm building a house system that the house pickup is actually a checkpoint and when players get closer to a checkpoint he sees it;
Код:
forward HouseUpdate();
public HouseUpdate()
{
	new playerid;
    for(new idx=1; idx<MAX_HOUSES; idx++) // Dynamic Houses
	{
		if(IsPlayerInRangeOfPoint(playerid, 3, HouseInfo[idx][hX], HouseInfo[idx][hY], HouseInfo[idx][hZ]))
	    {
			SetPlayerCheckpoint(playerid, HouseInfo[idx][hX], HouseInfo[idx][hY], HouseInfo[idx][hZ], 1);
		}
		
	}
	return 1;
}
Ideas how to make that when he gets far more then radius of 3 the checkpoint will dissaper...
Reply


Messages In This Thread
DisablePlayerCheckpoint when gets away from it - by maiky1499 - 28.12.2014, 23:04
Re : DisablePlayerCheckpoint when gets away from it - by MCZOFT - 28.12.2014, 23:11
Re: DisablePlayerCheckpoint when gets away from it - by Write - 28.12.2014, 23:47
Re: DisablePlayerCheckpoint when gets away from it - by maiky1499 - 30.12.2014, 13:48

Forum Jump:


Users browsing this thread: 1 Guest(s)