Locorn โพสต์ 2021-3-6 19:06:21

มีใครรู้ โค้ด PlayerToPoint มั้ยครับ

มีใครรู้ โค้ด PlayerToPoint มั้ยครับ

jamgames โพสต์ 2021-3-6 21:08:42


IsPlayerInRangeOfPoint was added in SA-MP 0.3a        This function was added in SA-MP 0.3a and will not work in earlier versions!
Parameters:
(playerid, Float:range, Float:x, Float:y, Float:z)
playerid        The ID of the player.
Float:range        The furthest distance the player can be from the point to be in range.
Float:x        The X coordinate of the point to check the range to.
Float:y        The Y coordinate of the point to check the range to.
Float:z        The Z coordinate of the point to check the range to.

Return Values:
true - The player is in range of the point.
false - The player is not in range of the point.


if (!strcmp("/stadium", cmdtext))
{
    if (IsPlayerInRangeOfPoint(playerid, 7.0, 2695.6880, -1704.6300, 11.8438))
    {
            SendClientMessage(playerid,0xFFFFFFFF,"You are near the stadium entrance!");
    }

    return 1;
}

jamal โพสต์ 2023-5-31 22:16:15

sdsdsadsssssssssssss
หน้า: [1]
ดูในรูปแบบกติ: มีใครรู้ โค้ด PlayerToPoint มั้ยครับ