21.02.2010, 07:48
onwiki it says this
and this
i dont understand that
Код:
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; }
Код:
Parameters: (playerid, Float:range, Float:x, Float:y, Float:z) playerid The ID of the player you want to check the point range of. Float:range The furthest distance the player can be 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. Returns 1 if the player is in range of the point, otherwise 0.