PlayerToPlayerDistance
#4

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


Messages In This Thread
PlayerToPlayerDistance - by Ballu Miaa - 28.01.2012, 05:13
Re: PlayerToPlayerDistance - by Ballu Miaa - 28.01.2012, 05:19
Re: PlayerToPlayerDistance - by Joe Staff - 28.01.2012, 05:39
Re: PlayerToPlayerDistance - by Ballu Miaa - 28.01.2012, 06:01

Forum Jump:


Users browsing this thread: 3 Guest(s)