View Single Post
Pelipoika
Veteran Member
Join Date: May 2012
Location: Inside
Old 10-12-2018 , 12:21   Re: cs go hegrenade explod timer
Reply With Quote #2

PHP Code:
#include <sdktools>
#pragma newdecls required


public void OnEntityCreated(int entity, const char[] class)
{
    if(
StrEqual(class, "hegrenade_projectile"))
    {
        
//Set detonate time
        
SetEntDataFloat(entityFindSendPropInfo("CBaseCSGrenadeProjectile""m_hThrower") + 36GetGameTime() + 10.0true);
    }

__________________
Pelipoika is offline