Quote:
Originally Posted by Joe Staff
pawn Код:
stock IsPlayerNearPlayer(playerid,nearplayerid,Float:distance) { new Float:x,Float:y,Float:z; GetPlayerPos(nearplayerid,x,y,z); return IsPlayerInRangeOfPoint(playerid,distance,x,y,z); } stock Float:GetPlayerDistanceToPlayer(playerid,nearplayerid) { new Float:x,Float:y,Float:z; GetPlayerPos(nearplayerid,x,y,z); return GetPlayerDistanceFromPoint(playerid,x,y,z); }
|
Awesome! Thanks alot. Im sure it will work!