Thread: [Solved] Hook Gasstation Explosion
View Single Post
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 09-27-2020 , 10:14   Re: Hook Gasstation Explosion
Reply With Quote #6

Dam, I have maybe do something wrong.

*edit
Just for test, edit
Code:
public void OnTrigger(const char[] output, int caller, int activator, float delay)
{
    if(caller > MaxClients)
    {
        char m_iName[MAX_NAME_LENGTH];
        GetEntPropString(caller, Prop_Data, "m_iName", m_iName, sizeof(m_iName));


        if(!StrEqual(m_iName, "gasstation_explosion_relay", false)) return;


        PrintToChatAll("- OnTrigger 'gasstation_explosion_relay' index %i", caller);
    }
} 

to

public void OnTrigger(const char[] output, int caller, int activator, float delay)
{
        PrintToChatAll("- OnTrigger 'gasstation_explosion_relay' index %i", caller);
} 

Last edited by Bacardi; 09-27-2020 at 10:15.
Bacardi is offline