Quote:
Originally Posted by wups
pawn Код:
stock IsPlayerNearPlayer(player1,player2,Float:distance) { new:Coo[3]; GetPlayerPos(player1,Coo[0],Coo[1],Coo[2]); return IsPlayerInRangeOfPoint(player2,distance,Coo[0],Coo[1],Coo[2]); }
Distance should be 5-10.
|
Nice way... wups, shorter and easier, add this to Useful Functions.