Raised This Month: $ Target: $400
 0% 

Smoke grenade explosion delay + finding players in radius [SOLVED]


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Flick3rR
Veteran Member
Join Date: Feb 2014
Location: Bulgaria, Stara Zagora
Old 12-27-2014 , 08:10   Re: Hallelujah nade - base questions about nade entities
Reply With Quote #1

So, as first I tried that, just to remove the smoke nade before it explodes:
PHP Code:
public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    new 
OrpheuFunction:HandleSGDetonateFunc
    HandleSGDetonateFunc 
OrpheuGetFunction("SG_Detonate""CGrenade")
    
OrpheuRegisterHook(HandleSGDetonateFunc"OnSGDetonate"OrpheuHookPre)
}

public 
OnSGDetonate(const ent)
{
    static 
idFloat:flOrigin[3]
    
id pev(entpev_owner)
    
pev(entpev_originflOrigin)
    
    
engfunc(EngFunc_RemoveEntityent)
    
client_print(idprint_chat"Smokegren removed")

And guess what, it's not working, the message doesn't show neither Tried with some other natives to remove the ent and stuff, still the same. I think I have a general mistake somewhere...
__________________
Flick3rR is offline
Send a message via Skype™ to Flick3rR
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 15:21.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode