[pwn]Float:GetDistancePlayerToCoord(playerid,Float:x,Float:y,Float:z){
new Float:x1,Float:y1,Float:z1;
GetPlayerPos(playerid,x1,y1,z1);
return floatsqroot(floatpower(floatabs(floatsub(x,x1)),2)+floatpower(floatabs(floatsub(y,y1)),2)+floatpower(floatabs(floatsub(z,z1)),2));
} public OnPlayerUpdate(playerid)
{
new Float:x,Float:y,Float:z;
x = 2823.7051;
y = 2596.9707;
z = 10.8203;
if(GetDistancePlayerToCoord(playerid,x,y,z) < 5.0)
{
SendClientMessage(playerid, COLOR_RED,"True!");
}
return 1;
}[/pwn]