Not Work...
#1

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...
Reply


Messages In This Thread
Not Work... - by Bogdanovic - 26.02.2011, 08:59
Re: Not Work... - by Mean - 26.02.2011, 09:16
Re: Not Work... - by Bogdanovic - 26.02.2011, 09:34
Re: Not Work... - by Bogdanovic - 26.02.2011, 10:18
Re: Not Work... - by Bogdanovic - 26.02.2011, 11:47
Re: Not Work... - by MadeMan - 26.02.2011, 12:29
Re: Not Work... - by Bogdanovic - 26.02.2011, 14:51
Re: Not Work... - by Bogdanovic - 26.02.2011, 19:39
Re: Not Work... - by MadeMan - 26.02.2011, 19:57
Re: Not Work... - by Bogdanovic - 26.02.2011, 20:00

Forum Jump:


Users browsing this thread: 1 Guest(s)