Raised This Month: $12 Target: $400
 3% 

Smokegrenade + Flashbang in One [new smokegren]


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
nikolov
Senior Member
Join Date: Feb 2011
Old 09-04-2013 , 08:05   Smokegrenade + Flashbang in One [new smokegren]
Reply With Quote #1

Hi guys
Sorry about stupid title
I'm searching one plugin.

Description:
When you throw smokegrenade you will be flashed after exploding the smoke. Smoke + Flash in One.


Thanks Advance

Last edited by nikolov; 09-04-2013 at 13:28.
nikolov is offline
tonykaram1993
Senior Member
Join Date: Mar 2013
Location: This World
Old 09-18-2013 , 08:02   Re: Smokegrenade + Flashbang in One [new smokegren]
Reply With Quote #2

I think I have an idea of how to accomplish this, however right now I am busy with another plugin. Let's hope, when I finish my current project, I will remember to do this unless this has already been made.
__________________
My Plugins:
UltimatePlugin
UltimateSurf
UltimateAdmin
Code:
rcon version | rcon amxx version | rcon meta version
rcon amxx plugins | rcon meta list | rcon status
I AM INACTIVE ON THIS FORUM - For direct contact: [email protected]
tonykaram1993 is offline
hornet
AMX Mod X Plugin Approver
Join Date: Mar 2010
Location: Australia
Old 09-18-2013 , 08:23   Re: Smokegrenade + Flashbang in One [new smokegren]
Reply With Quote #3

Have a blast ;)
Code:
#include <amxmodx> #include <orpheu> #define VERSION     "0.0.1" new OrpheuFunction:CGrenade_Detonate; public plugin_init() {     register_plugin( "Smoke / Flash IO", VERSION, "hornet" );         CGrenade_Detonate = OrpheuGetFunction( "Detonate", "CGrenade" );     OrpheuRegisterHook( OrpheuGetFunction( "SG_Detonate", "CGrenade" ), "OnCGrenade_SG_Detonate" ); } public OrpheuHookReturn:OnCGrenade_SG_Detonate( iEnt ) {     OrpheuCall( CGrenade_Detonate, iEnt ); }
Attached Files
File Type: zip signatures.zip (593 Bytes, 90 views)
__________________
Quote:
vBulletin Tip #42: Not much would be accomplished by merging this item with itself.
hornet is offline
yokomo
Surprise Ascot!
Join Date: May 2010
Location: Malaysia
Old 09-18-2013 , 08:40   Re: Smokegrenade + Flashbang in One [new smokegren]
Reply With Quote #4

Quote:
Originally Posted by hornet View Post
Have a blast ;)
Code:
#include <amxmodx> #include <orpheu> #define VERSION &nbsp;&nbsp;&nbsp;&nbsp;"0.0.1" new OrpheuFunction:CGrenade_Detonate; public plugin_init() { &nbsp;&nbsp;&nbsp;&nbsp;register_plugin( "Smoke / Flash IO", VERSION, "hornet" ); &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;CGrenade_Detonate = OrpheuGetFunction( "Detonate", "CGrenade" ); &nbsp;&nbsp;&nbsp;&nbsp;OrpheuRegisterHook( OrpheuGetFunction( "SG_Detonate", "CGrenade" ), "OnCGrenade_SG_Detonate" ); } public OrpheuHookReturn:OnCGrenade_SG_Detonate( iEnt ) { &nbsp;&nbsp;&nbsp;&nbsp;OrpheuCall( CGrenade_Detonate, iEnt ); }
Haha just like what i'm thinking, Orpheu is the way. Good job.
__________________
Team-MMG CS1.6 Servers:
✅ MultiMod -- 103.179.44.152:27016
✅ Zombie Plague -- 103.179.44.152:27015
✅ Zombie Escape -- 103.179.44.152:27017
✅ Klassik Kombat -- 103.179.44.152:27018
✅ Boss-Battle -- 103.179.44.152:27019
yokomo is offline
tonykaram1993
Senior Member
Join Date: Mar 2013
Location: This World
Old 09-18-2013 , 11:24   Re: Smokegrenade + Flashbang in One [new smokegren]
Reply With Quote #5

I just wish I had my way with Orpheu. Orpheu and I are not compatible friends yet :S
__________________
My Plugins:
UltimatePlugin
UltimateSurf
UltimateAdmin
Code:
rcon version | rcon amxx version | rcon meta version
rcon amxx plugins | rcon meta list | rcon status
I AM INACTIVE ON THIS FORUM - For direct contact: [email protected]
tonykaram1993 is offline
nikolov
Senior Member
Join Date: Feb 2011
Old 09-19-2013 , 06:27   Re: Smokegrenade + Flashbang in One [new smokegren]
Reply With Quote #6

Quote:
Originally Posted by hornet View Post
Have a blast ;)
Code:
#include <amxmodx> #include <orpheu> #define VERSION &nbsp;&nbsp;&nbsp;&nbsp;"0.0.1" new OrpheuFunction:CGrenade_Detonate; public plugin_init() { &nbsp;&nbsp;&nbsp;&nbsp;register_plugin( "Smoke / Flash IO", VERSION, "hornet" ); &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;CGrenade_Detonate = OrpheuGetFunction( "Detonate", "CGrenade" ); &nbsp;&nbsp;&nbsp;&nbsp;OrpheuRegisterHook( OrpheuGetFunction( "SG_Detonate", "CGrenade" ), "OnCGrenade_SG_Detonate" ); } public OrpheuHookReturn:OnCGrenade_SG_Detonate( iEnt ) { &nbsp;&nbsp;&nbsp;&nbsp;OrpheuCall( CGrenade_Detonate, iEnt ); }
Can u make cvar (on/off) ?
nikolov is offline
tonykaram1993
Senior Member
Join Date: Mar 2013
Location: This World
Old 09-19-2013 , 18:06   Re: Smokegrenade + Flashbang in One [new smokegren]
Reply With Quote #7

You either want this or you don't. Why do you need a cvar?
__________________
My Plugins:
UltimatePlugin
UltimateSurf
UltimateAdmin
Code:
rcon version | rcon amxx version | rcon meta version
rcon amxx plugins | rcon meta list | rcon status
I AM INACTIVE ON THIS FORUM - For direct contact: [email protected]
tonykaram1993 is offline
Kia
AlliedModders Donor
Join Date: Apr 2010
Location: In a world of madness
Old 09-20-2013 , 00:35   AW: Re: Smokegrenade + Flashbang in One [new smokegren]
Reply With Quote #8

Quote:
Originally Posted by tonykaram1993 View Post
You either want this or you don't. Why do you need a cvar?
It's too hard to go through the amxmodmenu to disable a plugin. ;)
__________________
Kia is offline
tonykaram1993
Senior Member
Join Date: Mar 2013
Location: This World
Old 09-20-2013 , 09:32   Re: AW: Re: Smokegrenade + Flashbang in One [new smokegren]
Reply With Quote #9

Quote:
Originally Posted by Kia View Post
It's too hard to go through the amxmodmenu to disable a plugin. ;)
You make plugins, and it's hard?
I am just joking, but here's a tip: "Something that takes a couple more seconds to accomplish is not harder!"
__________________
My Plugins:
UltimatePlugin
UltimateSurf
UltimateAdmin
Code:
rcon version | rcon amxx version | rcon meta version
rcon amxx plugins | rcon meta list | rcon status
I AM INACTIVE ON THIS FORUM - For direct contact: [email protected]
tonykaram1993 is offline
nikolov
Senior Member
Join Date: Feb 2011
Old 09-20-2013 , 14:20   Re: Smokegrenade + Flashbang in One [new smokegren]
Reply With Quote #10

PHP Code:
#include <amxmodx>
#include <orpheu>

new OrpheuFunction:CGrenade_Detonate;
new 
g_pEnable;

public 
plugin_init()
{
    
register_plugin"Smoke / Flash IO""0.0.1""hornet" );
    
    
g_pEnable register_cvar"amx_sf""1" );
    
    
CGrenade_Detonate OrpheuGetFunction"Detonate""CGrenade" );
    
OrpheuRegisterHookOrpheuGetFunction"SG_Detonate""CGrenade" ), "OnCGrenade_SG_Detonate" );
}

public 
OrpheuHookReturn:OnCGrenade_SG_DetonateiEnt )
    if(
get_pcvar_num(g_pEnable))
        
OrpheuCallCGrenade_DetonateiEnt ); 
Thanks
nikolov is offline
Reply


Thread Tools
Display Modes

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 04:28.


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