IsNpcInRangeOfPoint?
#2

Код:
IsNPCInRangeOfPoint(npcid, Float: range, Float: x, Float: y, Float: z)
{
	new pos[3];
	GetNPCPos(npcid, pos[0], pos[1], pos[2]); // change this function name accordingly or just use GetPlayerPos
	return (VectorSize(x, y, z, pos[0], pos[1], pos[2]) <= range);
}
Reply


Messages In This Thread
IsNpcInRangeOfPoint? - by ax1 - 03.09.2016, 08:31
Re: IsNpcInRangeOfPoint? - by Spmn - 03.09.2016, 12:50

Forum Jump:


Users browsing this thread: 1 Guest(s)