#Michael_Walker
Умник
PHP:
stock RadiusPlayer(Float:radius, playerid, gplayerid)
{
new Float: X, Float: Y, Float: Z;
GetPlayerPos(gplayerid, X, Y, Z);
if(IsPlayerInRangeOfPoint(playerid, radius, X, Y, Z)) return true;
return false;
}
stock RadiusPlayer(Float:radius, playerid, gplayerid)
{
new Float: x, Float: y, Float: z;
new Float: oldx, Float: oldy, Float: oldz;
new Float: tempx, Float: tempy, Float: tempz;
GetPlayerPos(playerid, oldx, oldy, oldz);
GetPlayerPos(gplayerid, x, y, z);
tempx = (oldx - x);
tempy = (oldy - y);
tempz = (oldz - z);
if(((tempx < radius) && (tempx > -radius)) && ((tempy < radius) && (tempy > -radius)) && ((tempz < radius) && (tempz > -radius))) return true;
return false;
}
