]-[elp safe zone
#1

please help me with safe zone,Can make safezone in game
Reply
#2

What do you mean safezone? explain yourself
Reply
#3

Quote:
Originally Posted by Lidor124
Посмотреть сообщение
What do you mean safezone? explain yourself
member go to this safe zone can't be kill
Reply
#4

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;
}
Reply
#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


Forum Jump:


Users browsing this thread: 3 Guest(s)