28.12.2014, 23:04
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;
Ideas how to make that when he gets far more then radius of 3 the checkpoint will dissaper...
Код:
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;
}

