View Single Post
Michalplyoutube
Veteran Member
Join Date: Jan 2013
Location: Tank Carrier in Mannhattan
Old 07-13-2015 , 11:41   Re: [TF2] Problem with closehandle
Reply With Quote #9

Quote:
Originally Posted by Powerlord View Post
What is the code for NewGlow?
Here's

PHP Code:
public Action:NewGlow(Handle:timer,any:obj)
{
    if(!
IsValidEntity(obj)) return Plugin_Stop;
    
decl String:sBuffer[PLATFORM_MAX_PATH];
    
GetEntPropString(objProp_Data"m_ModelName"sBuffersizeof(sBuffer));
    if(
StrContains(sBuffer"sentry") != -1)
    {
        if(
StrContains(sBuffer"heavy") == -1)
        {
            
CreateTimer(0.1,Glow,obj);
            if(
IsValidEntity(ObjGlow[obj]))
                
RemoveEdict(ObjGlow[obj]);        
            
//AcceptEntityInput(ObjGlow[obj],"Kill");
            
ObjGlow[obj] = -1;
            return 
Plugin_Stop;
        }
    }
    else
    {
        if(
StrContains(sBuffer"light") != -1)
        {
            
CreateTimer(0.1,Glow,obj);
            if(
IsValidEntity(ObjGlow[obj]))
                
RemoveEdict(ObjGlow[obj]);    
            
//AcceptEntityInput(ObjGlow[obj],"Kill");
            
ObjGlow[obj] = -1;
            return 
Plugin_Stop;
        }
    }
    return 
Plugin_Continue;

__________________
The plugin developer of TF2BWR Reborn
And a TF2 Player
Michalplyoutube is offline