IsPlayerInArea Doesnt work
#1

Hey scripters
I got this stupid problem
that my IsPlayerInArea doesnt work.
Okey so here is the stock

pawn Код:
stock IsPlayerInArea(playerid,Float:min_x,Float:min_y,Float:max_x,Float:max_y)
{
 new Float: p[3];
 GetPlayerPos(playerid,p[0],p[1],p[2]);
 return p[0] >= min_x && p[0] <= max_x && p[1] >= min_y && p[1] <= max_y? 1:0;
}
Okey so it supouse to be min_x,max_y,max_x,min_y:

Right ?

Okey I got this

pawn Код:
public OnPlayerUpdate(playerid)
{
    if(IsPlayerInArea(playerid,2317.1729,-0.1240,2304.8511,-17.3021))
    {
        Kick(playerid);
              }
    return 0;
}
it supouse to kick the player if he is in the bank.

no errors,but when I am there it doesnt kick me .
Reply


Messages In This Thread
IsPlayerInArea Doesnt work - by bijoyekuza - 01.04.2011, 11:01
Re: IsPlayerInArea Doesnt work - by itachi4x4 - 01.04.2011, 11:24
AW: IsPlayerInArea Doesnt work - by Nero_3D - 01.04.2011, 13:17

Forum Jump:


Users browsing this thread: 1 Guest(s)