Help with IsPlayerInArea
#3

Try:

pawn Код:
public OnPlayerUpdate(playerid)
{
    if(IsPlayerInArea(playerid, 2972.0000, 581.7188, 676.0000, 2930.0000))
    {
        new Float:X, Float:Y, Float:Z;
        GetPlayerPos(playerid, X, Y, Z);
        if(X >= 2972.0000 && X <= 581.7188 && Y >= 676.0000 && Y <= 2930.0000)
        {
            ResetPlayerWeapons(playerid);
       
        }
    }
    return 1;
}
Also check if coordinates are correct.
Reply


Messages In This Thread
Help with IsPlayerInArea - by LeXuZ - 19.11.2014, 17:54
Re : Help with IsPlayerInArea - by Dutheil - 19.11.2014, 17:56
Re: Help with IsPlayerInArea - by Fel486 - 19.11.2014, 17:56
Re: Help with IsPlayerInArea - by LeXuZ - 19.11.2014, 17:58
Re : Help with IsPlayerInArea - by Dutheil - 19.11.2014, 18:01
Re: Help with IsPlayerInArea - by LeXuZ - 19.11.2014, 18:17
AW: Help with IsPlayerInArea - by Nero_3D - 19.11.2014, 18:30

Forum Jump:


Users browsing this thread: 6 Guest(s)