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-05-2020 , 14:13   Re: [HELP] Detect if Map has Water on Start
Reply With Quote #1

Like this?
PHP Code:
public plugin_init()
{
        if(
cs_find_ent_by_class(-1"func_water"))
    {
        
register_forward(FM_PlayerPreThink,"FM_Water_PreThink");
        
register_forward(FM_PlayerPostThink,"FM_Water_PostThink");
    }
... 
It's giving out errors. I'm probably doing something wrong...
__________________
hellmonja is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 06-05-2020 , 15:16   Re: [HELP] Detect if Map has Water on Start
Reply With Quote #2

Giving errors? Like? Be specific. Saying "it doesn't work" is useless.
__________________
HamletEagle 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