Is it possible to detect if a map has water at the start of a game so I can disable my plugin?
I saw this code that detects if there's a bombsite anywhere on the map:
PHP Code:
if(find_ent_by_class(-1, "func_bomb_target") <= 0 && find_ent_by_class(-1, "info_bomb_target") <= 0)
pause("d");
I have a plugin that deals with water so I tried modifying the code into this:
PHP Code:
if(find_ent_by_class(-1, "func_water") <= 0)
pause("d");
But it doesn't work and never returns true...
__________________