09.11.2014, 13:03
Код:
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; }