]-[elp safe zone
#5

Quote:
Originally Posted by DaTa[X]
Посмотреть сообщение
pawn Код:
IsPlayerInArea(playerid, Float:MinX, Float:MinY, Float:MaxX, Float:MaxY)
{
    new Float:X, Float:Y, Float:Z;

    GetPlayerPos(playerid, X, Y, Z);
    if(X >= MinX && X <= MaxX && Y >= MinY && Y <= MaxY) {
        return 1;
    }
    return 0;
}

public OnPlayerUpdate(playerid)
{
   if(IsPlayerInArea(playerid, 0.0, 0.0,0.0,0.0))
      {
          SetPlayerHealth(playerid,0);
       }
    return 1;
}
TKS so much
Reply


Messages In This Thread
]-[elp safe zone - by huydollar - 05.10.2013, 02:40
Re: ]-[elp safe zone - by Lidor124 - 05.10.2013, 07:16
Re: ]-[elp safe zone - by huydollar - 06.10.2013, 02:31
Re: ]-[elp safe zone - by DaTa[X] - 06.10.2013, 03:12
Re: ]-[elp safe zone - by huydollar - 06.10.2013, 04:01

Forum Jump:


Users browsing this thread: 1 Guest(s)