Player on Water ?
#5

Код:
stock IsPlayerInWater(playerid)
{
      if(IsPlayerInAnyVehicle(playerid))
      {
          new Float:pnX,Float:pnY,Float:pnZ;
          GetPlayerPos(playerid,pnX,pnY,pnZ);
          if(pnZ < 1.5)return 1;
	      if((IsPlayerInRangeOfPoint(playerid, 300.0, -1168.11,2151.00,40.0) || IsPlayerInRangeOfPoint(playerid, 300.0, -958.11,2401.0,40.0) ||
          IsPlayerInRangeOfPoint(playerid, 300.0, -1084.94,2649.50,40.04))&& pnZ < 45)return 1;
          if((IsPlayerInRangeOfPoint(playerid, 100.0, 1962.16,1599.64,10.0) || IsPlayerInRangeOfPoint(playerid, 50.0, 2147.28,1131.29,10.0) ||
          IsPlayerInRangeOfPoint(playerid, 30.0, 1237.01,-2378.30,10.0) || IsPlayerInRangeOfPoint(playerid, 50.0, 2108.07,1907.37,10.0)) && pnZ < 10)return 1;
          if(IsPlayerInRangeOfPoint(playerid, 50.0, 13129.3950,973.4327,17.45) && pnZ < 20)return 1;
      }
      return 0;
}
Reply


Messages In This Thread
Player on Water ? - by WhiteAngels - 09.11.2014, 07:24
Re: Player on Water ? - by biker122 - 09.11.2014, 07:31
Re: Player on Water ? - by Pottus - 09.11.2014, 07:40
Re: Player on Water ? - by Quickie - 09.11.2014, 07:41
Re: Player on Water ? - by xStunt - 09.11.2014, 13:03
Re: Player on Water ? - by Toxik - 09.11.2014, 13:54

Forum Jump:


Users browsing this thread: 1 Guest(s)