IsPlayerInZone doesn't work at all!
#1

pawn Код:
public IsPlayerInZone(playerid, Float:XMin, Float:YMin, Float:XMax, Float:YMax)
{
    new RetValue = 0;
    new Float: PosX, Float: PosY, Float: PosZ;
    GetPlayerPos( playerid, PosX, PosY, PosZ );

    if( PosX >= XMin && PosY >= YMin && PosX < XMax && PosY < YMax )
    {
      RetValue = 1;
    }
    return RetValue;
}
And

pawn Код:
if(IsPlayerInZone(playerid, 2977.858, 817.4513, 2989.536, 467.115)) // Las Venturas
{
I get those coords from Vehicle Plotter and selected whole Las Venturas, whoever if some player is in the middle of Las Venturas, IsPlayerInZone returns 0

Why?

I tried to do the same with San Fierro and Los Santos but they all don't work!
I also tried many other IsPlayerInZone and IsPlayerInArea's but they all never work!
Reply


Messages In This Thread
IsPlayerInZone doesn't work at all! - by Andom - 03.05.2009, 18:37
Re: IsPlayerInZone doesn't work at all! - by Backwardsman97 - 03.05.2009, 19:21
Re: IsPlayerInZone doesn't work at all! - by Weirdosport - 03.05.2009, 19:25
Re: IsPlayerInZone doesn't work at all! - by Andom - 04.05.2009, 08:15
Re: IsPlayerInZone doesn't work at all! - by radeee - 24.08.2009, 16:42
Re: IsPlayerInZone doesn't work at all! - by Limex - 24.08.2009, 17:25
Re: IsPlayerInZone doesn't work at all! - by radeee - 24.08.2009, 17:28

Forum Jump:


Users browsing this thread: 1 Guest(s)