05.11.2011, 02:27
(
Последний раз редактировалось Jack_Leslie; 05.11.2011 в 02:28.
Причина: Is player near object problems.
)
pawn Код:
stock IsPlayerNearPayphone(playerid)
{
new Float:X, Float:Y, Float:Z;
new Float:X2, Float:Y2, Float:Z2;
new Float:X3, Float:Y3, Float:Z3;
GetObjectPos(1216, X, Y, Z);
GetObjectPos(1346, X2, Y2, Z2);
GetObjectPos(1363, X3, Y3, Z3);
if(IsPlayerInRangeOfPoint(playerid, 2.5, X, Y, Z)) return 1;
if(IsPlayerInRangeOfPoint(playerid, 2.5, X2, Y2, Z2)) return 1;
if(IsPlayerInRangeOfPoint(playerid, 2.5, X3, Y3, Z3)) return 1;
else return 0;
}