26.02.2011, 08:59
(
Последний раз редактировалось Bogdanovic; 26.02.2011 в 09:35.
)
pawn Код:
IsObjectInArea(objectid, Float:minx, Float:maxx, Float:miny, Float:maxy)
{
new Float:x, Float:y, Float:z;
GetObjectPos(objectid, x, y, z);
if (x > minx && x < maxx && y > miny && y < maxy) return 1;
else return 0;
}
pawn Код:
public ControlObject()
{
if(IsObjectInArea(BALL, * Pos GangZone *))
{
SendClientMessageToAll(GREEN, "Object in Area...");
}
if(!IsObjectInArea(BALL, * Pos GangZone *))
{
SendClientMessageToAll(RED, "Object Not in Area...");
}
}
Help me please,
the Function flood SendClientMessageToAll(RED, "Object Not in Area..."); but the Object is in.
The Problem is not * Pos GangZone * beacouse the CreateGangZone work...