Ради этого целый плагин подключать?
PHP код:
bool: basseins(playerid);
stock bool: basseins(playerid)
{
if(IsPlayerInRangeOfPoint(playerid,100,193.69999694824,-1232.5999755859,76.599998474121)) return true;
if(IsPlayerInRangeOfPoint(playerid,20,1089.9260,-665.9568,111.4500)) return true;
if(IsPlayerInRangeOfPoint(playerid,120,-893.29998779297,2387.8999023438,40)) return true;
if(IsPlayerInRangeOfPoint(playerid,200,-1291.4000244141,2122.1000976563,40)) return true;
if(IsPlayerInRangeOfPoint(playerid,30,1953.6931,-1194.0907,17.4500)) return true;
if(IsPlayerInRangeOfPoint(playerid,30,2318.3306,-1415.2393,21.6150)) return true;
if(IsPlayerInRangeOfPoint(playerid,30,1286.5262,-804.5318,86.1230)) return true;
if(IsPlayerInRangeOfPoint(playerid,100,2582.8059,2384.6702,15.8500)) return true;
return false;
}
stock IsPlayerInWater(playerid)
{
new Float:FXF_wpos;
GetPlayerPos(playerid,FXF_wpos,FXF_wpos,FXF_wpos);
return (FXF_wpos < 1.00 || 39.0 < FXF_wpos < 41.0 || basseins(playerid))?true:false;
}