Raised This Month: $ Target: $400
 0% 

Solved [HELP] Detect if Map has Water on Start


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
hellmonja
Senior Member
Join Date: Oct 2015
Old 06-03-2020 , 01:53   Re: [HELP] Detect if Map has Water on Start
Reply With Quote #1

This works:
PHP Code:
if(engfunc(EngFunc_FindEntityByString, -1"classname""func_water"))
    
g_water true
Very useful if your plugin deals with water alone. Just invert the condition and put pause("d") in there and plugin should disable itself. Thanks everyone!...
__________________

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



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