Raised This Month: $ Target: $400
 0% 

Solved [HELP] Detect if Map has Water on Start


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
hellmonja
Senior Member
Join Date: Oct 2015
Old 06-02-2020 , 09:31   [HELP] Detect if Map has Water on Start
Reply With Quote #1

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") <= && 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...
__________________

Last edited by hellmonja; 06-03-2020 at 01:53.
hellmonja is offline
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 16:50.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode