19.04.2013, 03:07
Hi
i make this CMD
But in Game i go at this object and jut get meage "You are not near this Object."
i make this CMD
pawn Код:
CMD:test(playerid, params[])
{
new hu;
hu = CreateObject(2000, 1637.10046, -2241.53931, 12.49765, 0.00000, 0.00000, 0.00000);
new Float:gx, Float:gy, Float:gz;
GetPlayerPos(hu, gx, gy, gz);
if(!IsPlayerInRangeOfPoint(playerid, 5.0, Float:gx, Float:gy, Float:gz)) return SendClientMessage(playerid, COLOR_LIGHTRED, "You are not near this Object.");
{
SendClientMessage(playerid, COLOR_YELLOWGREEN, "Good job.");
return 1;
}
}
But in Game i go at this object and jut get meage "You are not near this Object."