17.08.2011, 13:45
Quote:
I need stock PlayerDistanceToPlayer....
to calculate distance between player... foe example: if(PlayerDistanceToPlayer(playerid,70)==1) { my code... } |
pawn Код:
stock PlayerToPlayer(playerid, targetid, Float:dist)
{
new Float:pos[3];
GetPlayerPos(targetid, pos[0], pos[1], pos[2]);
return IsPlayerInRangeOfPoint(playerid, dist, pos[0], pos[1], pos[2]);
}