01.04.2011, 11:01
Hey scripters
I got this stupid problem
that my IsPlayerInArea doesnt work.
Okey so here is the stock
Okey so it supouse to be min_x,max_y,max_x,min_y:
Right ?
Okey I got this
it supouse to kick the player if he is in the bank.
no errors,but when I am there it doesnt kick me .
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;
}
Right ?
Okey I got this
pawn Код:
public OnPlayerUpdate(playerid)
{
if(IsPlayerInArea(playerid,2317.1729,-0.1240,2304.8511,-17.3021))
{
Kick(playerid);
}
return 0;
}
no errors,but when I am there it doesnt kick me .