How to do IsPlayerNearPlayer
#3

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.
Reply


Messages In This Thread
How to do IsPlayerNearPlayer - by Harry_Sandhu - 31.07.2011, 16:54
Re: How to do IsPlayerNearPlayer - by Toreno - 31.07.2011, 16:58
Re: How to do IsPlayerNearPlayer - by wups - 31.07.2011, 16:59
Re: How to do IsPlayerNearPlayer - by Toreno - 31.07.2011, 17:01
Re: How to do IsPlayerNearPlayer - by iPLEOMAX - 31.07.2011, 17:01

Forum Jump:


Users browsing this thread: 1 Guest(s)