Problem with IsPlayerInArea and killing
#6

Quote:
Originally Posted by Revenation
Okay, that worked as in I die now, but the problem now is I die everywhere in SA XDD.. Also when im rcon logged in I still get the message and get killed. :P
pawn Код:
forward IPIA(playerid);
public IPIA(playerid)
{
  if(IsPlayerInArea(playerid, -3629.523925, -4407.841308, 1020.867858, -193.529113) && IsPlayerAdmin(playerid))
  {
    GameTextForPlayer(playerid, "~g~Welcome to the Island", 5000, 1);
    }
    else GameTextForPlayer(playerid, "~r~You are not permitted to enter this island", 5000, 1); SetPlayerHealth(playerid, 0.0);
}

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;
}
Rcon fixed.. you die everywhere because your cords are wrog.. check them.
Reply


Messages In This Thread
Problem with IsPlayerInArea and killing - by Revenation - 14.03.2010, 19:57
Re: Problem with IsPlayerInArea and killing - by Fedee! - 14.03.2010, 20:02
Re: Problem with IsPlayerInArea and killing - by Revenation - 14.03.2010, 20:07
Re: Problem with IsPlayerInArea and killing - by Fedee! - 14.03.2010, 20:16
Re: Problem with IsPlayerInArea and killing - by Revenation - 14.03.2010, 20:31
Re: Problem with IsPlayerInArea and killing - by Fedee! - 14.03.2010, 20:33
Re: Problem with IsPlayerInArea and killing - by Revenation - 14.03.2010, 20:38
Re: Problem with IsPlayerInArea and killing - by Fedee! - 14.03.2010, 20:43
Re: Problem with IsPlayerInArea and killing - by Revenation - 14.03.2010, 20:49
Re: Problem with IsPlayerInArea and killing - by Fedee! - 14.03.2010, 20:53

Forum Jump:


Users browsing this thread: 1 Guest(s)