If player in pos
#3

Use this function
pawn Код:
stock IsPlayerInArea(playerid, Float:max_x, Float:min_x, Float:max_y, Float:min_y)
{
    new Float:X, Float:Y, Float:Z;
    GetPlayerPos(playerid, X, Y, Z);
    if(X <= max_x && X >= min_x && Y <= max_y && Y >= min_y) return 1;
    return 0;
}
You do it like
pawn Код:
if(IsPlayerInArea(playerid, max x, min x, max y, min y)
and if he is in the area, the code in the if statement will execute. And as stated above, you would need a timer to check of the players in the area
Reply


Messages In This Thread
If player in pos - by Sal_Kings - 29.06.2009, 20:42
Re: If player in pos - by James_Alex - 29.06.2009, 20:47
Re: If player in pos - by dice7 - 29.06.2009, 20:48

Forum Jump:


Users browsing this thread: 3 Guest(s)