Need Help With IsVehicleInArea
#1

Hello , i need some help

i got function

pawn Код:
IsVehicleInArea(playerid, Float:minx, Float:maxx, Float:miny, Float:maxy)
{
    new Float:x, Float:y, Float:z;
    GetVehiclePos(GetPlayerVehicleID(playerid), x, y, z);
    if (x > minx && x < maxx && y > miny && y < maxy) return 1;
    return 0;
}
i made the gangzone

and added coords

pawn Код:
if(IsVehicleInArea(g, -2101.701171, -283.088439, -2013.701171, -91.088455)
but i want it to show all the players a text who is on the area.

but when i leave at area then it still shows gametext.

i got timer updater working too..

The Gangzone

pawn Код:
GangZoneCreate(-2101.701171, -283.088439, -2013.701171, -91.088455);
can someone help me to put coords rightly ?
i think there is something wrong with coords.


repping too please help :P
Reply


Messages In This Thread
Need Help With IsVehicleInArea - by titanak - 07.12.2011, 12:18
Re: Need Help With IsVehicleInArea - by Sascha - 07.12.2011, 13:33
Re: Need Help With IsVehicleInArea - by titanak - 07.12.2011, 13:44

Forum Jump:


Users browsing this thread: 2 Guest(s)