What function would i use.
#7

Quote:
Originally Posted by RealCop228
Посмотреть сообщение
I am not sure exactly, but you may wish to give this a try:

pawn Код:
stock IsPlayerInRangeOfPlayer(playerid, otherid, Float:range)
{
    new Float:Pos[3];
    GetPlayerPos(otherid, Pos[0], Pos[1], Pos[2]);
    if(IsPlayerInRangeOfPoint(playerid, range, Pos[0], Pos[1], Pos[2])) return true;
    return false;
}
that checks to see if you're near another player^^
Reply


Messages In This Thread
What function would i use. - by Haydz - 20.12.2010, 00:28
Re: What function would i use. - by blackwave - 20.12.2010, 00:30
Re: What function would i use. - by Haydz - 20.12.2010, 00:32
Re: What function would i use. - by Lorenc_ - 20.12.2010, 00:37
Re: What function would i use. - by Calgon - 20.12.2010, 04:37
Re: What function would i use. - by Scenario - 20.12.2010, 05:24
Re: What function would i use. - by Sledge - 20.12.2010, 07:15
Re: What function would i use. - by CrucixTM - 20.12.2010, 07:41
Re: What function would i use. - by Lorenc_ - 20.12.2010, 08:10
Re: What function would i use. - by Nibblet - 20.12.2010, 08:51

Forum Jump:


Users browsing this thread: 1 Guest(s)