03.05.2009, 18:37
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;
}
pawn Код:
if(IsPlayerInZone(playerid, 2977.858, 817.4513, 2989.536, 467.115)) // Las Venturas
{
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!