20.07.2014, 14:41
You've made the distance so long..
Try this?
pawn Код:
if(strcmp(cmd, "/makedrugs", true) == 0)
{
new Float:editor[3];
GetObjectPos(3383, editor[0], editor[1], editor[2]);
if(IsPlayerInRangeOfPoint(playerid, 0.5, editor[0], editor[1], editor[2]))
{
SendClientMessage(playerid, COLOR_RED,"ok"COL_WHITE": you near table");
return 1;
}
else
{
SendClientMessage(playerid, COLOR_RED,"error"COL_WHITE": you aren't near table");
return 1;
}
}