Raised This Month: $32 Target: $400
 8% 

Nades Api


Post New Thread Reply   
 
Thread Tools Display Modes
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 03-31-2013 , 07:48   Re: Nades Api
Reply With Quote #11

Experimental version with new forwards and natives :
Make sure you have latest cstrike_pdata includes files, some weapon_c4 pdatas were missing, i've edited attachment today.

.: Forwards :.


Code:
// C4 forwards forward OnC4C4Touch(ent, pOther); forward OnC4C4Think(ent); forward OnC4Detonate2(ent); forward OnC4Smoke2(ent);



.: Natives :.


Code:
// Returns C4Think index            // C4 native Get_C4_C4Think(); // Returns Detonate2 index      // C4 native Get_C4_Detonate2(); // Returns C4Touch index            // C4 native Get_C4_C4Touch(); // Returns Smoke2 index   // C4 native Get_C4_Smoke2();



.: Test Plugin :.


PHP Code:
#include <amxmodx>
#include <hamsandwich>
#include <nades_api>

#tryinclude <cstrike_pdatas>

#if !defined _cbaseentity_included
        #assert Cstrike Pdatas and Offsets library required! Read the below instructions:   \
                
1. Download it at forums.alliedmods.net/showpost.php?p=1712101#post1712101   \
                
2. Put it into amxmodx/scripting/include/ folder   \
                
3. Compile this plugin locallydetailswiki.amxmodx.org/index.php/Compiling_Plugins_%28AMX_Mod_X%29   \
                
4. Install compiled plugindetailswiki.amxmodx.org/index.php/Configuring_AMX_Mod_X#Installing
#endif

#define PLUGIN ""
#define VERSION "0.0.1"

#define GetThink(%0) get_pdata_int(%0, m_pfnThink, 0)
#define GetTouch(%0) get_pdata_int(%0, m_pfnTouch, 1)
#define GetUse(%0) get_pdata_int(%0, m_pfnUse, 2)
#define GetBlocked(%0) get_pdata_int(%0, m_pfnBlocked, 3)
#define GetCallWhenMoveDone(%0) get_pdata_int(%0, m_pfnCallWhenMoveDone, 4)

#define SetThink(%0,%1) set_pdata_int(%0, m_pfnThink, %1, 0)
#define SetTouch(%0,%1) set_pdata_int(%0, m_pfnTouch, %1, 1)
#define SetUse(%0,%1) set_pdata_int(%0, m_pfnUse, %1, 2)
#define SetBlocked(%0,%1) set_pdata_int(%0, m_pfnBlocked, %1, 3)
#define SetCallWhenMoveDone(%0,%1) set_pdata_int(%0, m_pfnCallWhenMoveDone, %1, 4)

new SG_DetonateDetonate2Detonate3
new g_iEvent_CreateSmoke

public plugin_init()
{
    
register_pluginPLUGINVERSION"ConnorMcLeod" )

    
g_iEvent_CreateSmoke engfunc(EngFunc_PrecacheEvent1"events/createsmoke.sc")
}

public 
plugin_cfg()
{
    
SG_Detonate Get_Nade_SG_Detonate()
    
Detonate2 Get_C4_Detonate2()
    
Detonate3 Get_Nade_Detonate3()
}

public 
OnFlashNadeDetonateent )
{
    if( 
pev(entpev_flags) & FL_ONGROUND )
    {
        
ExecuteHam(Ham_Thinkent// make explode as flash

        
SetThink(entDetonate3)
        
ExecuteHam(Ham_Thinkent// make explode as HE

        
SetThink(entSG_Detonate)
        
set_pdata_short(entm_usEvent_Grenadeg_iEvent_CreateSmoke// set Smoke explosion so on this think game makes it explode as a smoke grenade
        
return PLUGIN_CONTINUE
    
}
    
set_pev(entpev_nextthinkget_gametime() + 0.1)
    return 
PLUGIN_HANDLED
}

public 
OnHeNadeDetonateent )
{
    
SetThink(entDetonate2// make HE detonate as planted c4 (terminates round on de_ maps)

Attached Files
File Type: inc nades_api.inc (1.6 KB, 284 views)
File Type: sma Get Plugin or Get Source (nades_api.sma - 422 views - 14.9 KB)
__________________
- tired and retired -

- my plugins -

Last edited by ConnorMcLeod; 03-31-2013 at 18:24.
ConnorMcLeod is offline
Old 01-04-2015, 18:13
banci
This message has been deleted by banci. Reason: succeeded with 1.8.2 and the original (1st post) files :$$$
lqlqlq
Senior Member
Join Date: Jan 2008
Old 01-27-2015 , 11:14   Re: Nades Api
Reply With Quote #12

Hello.

This plugin is not compiling over 1.83. I download needed libraries from here, but again - throws errors when compiling process.

Errors started with 'pfn'.

Can you fix this issues ? (i try and new version with new natives) - is the same
lqlqlq is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 01-28-2015 , 19:24   Re: Nades Api
Reply With Quote #13

Because some stocks have been integrated in 1.8.3

Fast fix is to open cstrike_pdata.inc and commenting or removing last line "#tryinclude "cstrike_pdatas/pdatas_stocks.inc""
__________________
Arkshine is offline
deivid
Member
Join Date: Apr 2011
Old 02-04-2015 , 00:02   Re: Nades Api
Reply With Quote #14

eu não entendo, que voce quer dizer com este plugin ?
deivid is offline
Old 05-07-2015, 03:26
folycs
This message has been deleted by folycs. Reason: haha
JusTGo
Veteran Member
Join Date: Mar 2013
Old 05-07-2015 , 15:22   Re: Nades Api
Reply With Quote #15

Quote:
Originally Posted by folycs View Post
Where is the DLL?
what DLL ? this is a plugin.
JusTGo is offline
Old 05-08-2015, 05:09
folycs
This message has been deleted by folycs. Reason: sorry lol :P
THEHEXAGON
Member
Join Date: Jan 2022
Location: USA
Old 03-29-2022 , 12:57   Re: Nades Api
Reply With Quote #16

Install nades_api and all it does is this.... Nothing more.

Code:
L 03/29/2022 - 10:21:41: Start of error session.
L 03/29/2022 - 10:21:41: Info (map "de_westwood") (file "addons/amxmodx/logs/error_20220329.log")
L 03/29/2022 - 10:21:41: [AMXX] Invalid Plugin (plugin "nades_api.amxx")
L 03/29/2022 - 10:26:05: Start of error session.
L 03/29/2022 - 10:26:05: Info (map "de_westwood") (file "addons/amxmodx/logs/error_20220329.log")
L 03/29/2022 - 10:26:05: [AMXX] Invalid Plugin (plugin "nades_api.amxx")
L 03/29/2022 - 10:26:40: Start of error session.
L 03/29/2022 - 10:26:40: Info (map "de_westwood") (file "addons/amxmodx/logs/error_20220329.log")
L 03/29/2022 - 10:26:40: [AMXX] Invalid Plugin (plugin "nades_api.amxx")
L 03/29/2022 - 10:35:24: Start of error session.
L 03/29/2022 - 10:35:24: Info (map "de_westwood") (file "addons/amxmodx/logs/error_20220329.log")
L 03/29/2022 - 10:35:24: [AMXX] Invalid Plugin (plugin "nades_api.amxx")
L 03/29/2022 - 10:36:56: Start of error session.
L 03/29/2022 - 10:36:56: Info (map "de_westwood") (file "addons/amxmodx/logs/error_20220329.log")
L 03/29/2022 - 10:36:56: [AMXX] Invalid Plugin (plugin "nades_api.amxx")
L 03/29/2022 - 10:49:28: Start of error session.
L 03/29/2022 - 10:49:28: Info (map "de_dust_wntdm") (file "addons/amxmodx/logs/error_20220329.log")
L 03/29/2022 - 10:49:28: [AMXX] Invalid Plugin (plugin "nades_api.amxx")
L 03/29/2022 - 11:11:30: Start of error session.
L 03/29/2022 - 11:11:30: Info (map "cs_agency_csgo") (file "addons/amxmodx/logs/error_20220329.log")
L 03/29/2022 - 11:11:30: [AMXX] Invalid Plugin (plugin "nades_api.amxx")
L 03/29/2022 - 11:33:31: Start of error session.
L 03/29/2022 - 11:33:31: Info (map "de_mirage_32") (file "addons/amxmodx/logs/error_20220329.log")
L 03/29/2022 - 11:33:31: [AMXX] Invalid Plugin (plugin "nades_api.amxx")
L 03/29/2022 - 11:55:31: Start of error session.
L 03/29/2022 - 11:55:31: Info (map "de_prodigy_cz") (file "addons/amxmodx/logs/error_20220329.log")
L 03/29/2022 - 11:55:31: [AMXX] Invalid Plugin (plugin "nades_api.amxx")
L 03/29/2022 - 12:09:42: Start of error session.
L 03/29/2022 - 12:09:42: Info (map "de_eldorado") (file "addons/amxmodx/logs/error_20220329.log")
L 03/29/2022 - 12:09:42: [AMXX] Invalid Plugin (plugin "nades_api.amxx")
L 03/29/2022 - 12:17:01: Start of error session.
L 03/29/2022 - 12:17:01: Info (map "de_eldorado") (file "addons/amxmodx/logs/error_20220329.log")
L 03/29/2022 - 12:17:01: [AMXX] Invalid Plugin (plugin "nades_api.amxx")
L 03/29/2022 - 12:27:20: Start of error session.
L 03/29/2022 - 12:27:20: Info (map "de_eldorado") (file "addons/amxmodx/logs/error_20220329.log")
L 03/29/2022 - 12:27:20: [AMXX] Invalid Plugin (plugin "nades_api.amxx")
L 03/29/2022 - 12:27:45: Start of error session.
L 03/29/2022 - 12:27:45: Info (map "de_westwood") (file "addons/amxmodx/logs/error_20220329.log")
L 03/29/2022 - 12:27:45: [AMXX] Invalid Plugin (plugin "nades_api.amxx")
L 03/29/2022 - 12:34:58: Start of error session.
L 03/29/2022 - 12:34:58: Info (map "de_eldorado") (file "addons/amxmodx/logs/error_20220329.log")
L 03/29/2022 - 12:34:58: [AMXX] Invalid Plugin (plugin "nades_api.amxx")
L 03/29/2022 - 12:43:21: Start of error session.
L 03/29/2022 - 12:43:21: Info (map "de_eldorado") (file "addons/amxmodx/logs/error_20220329.log")
L 03/29/2022 - 12:43:21: [AMXX] Invalid Plugin (plugin "nades_api.amxx")
L 03/29/2022 - 12:50:55: Start of error session.
L 03/29/2022 - 12:50:55: Info (map "de_eldorado") (file "addons/amxmodx/logs/error_20220329.log")
L 03/29/2022 - 12:50:55: [AMXX] Invalid Plugin (plugin "nades_api.amxx")
L 03/29/2022 - 12:54:04: Start of error session.
L 03/29/2022 - 12:54:04: Info (map "de_westwood") (file "addons/amxmodx/logs/error_20220329.log")
L 03/29/2022 - 12:54:04: [AMXX] Invalid Plugin (plugin "nades_api.amxx")
L 03/29/2022 - 12:54:09: Start of error session.
L 03/29/2022 - 12:54:09: Info (map "de_westwood") (file "addons/amxmodx/logs/error_20220329.log")
L 03/29/2022 - 12:54:09: [AMXX] Invalid Plugin (plugin "nades_api.amxx")
L 03/29/2022 - 12:54:14: Start of error session.
L 03/29/2022 - 12:54:14: Info (map "de_westwood") (file "addons/amxmodx/logs/error_20220329.log")
L 03/29/2022 - 12:54:14: [AMXX] Invalid Plugin (plugin "nades_api.amxx")
L 03/29/2022 - 12:54:19: Start of error session.
L 03/29/2022 - 12:54:19: Info (map "de_westwood") (file "addons/amxmodx/logs/error_20220329.log")
L 03/29/2022 - 12:54:19: [AMXX] Invalid Plugin (plugin "nades_api.amxx")
L 03/29/2022 - 12:54:24: Start of error session.
L 03/29/2022 - 12:54:24: Info (map "de_westwood") (file "addons/amxmodx/logs/error_20220329.log")
L 03/29/2022 - 12:54:24: [AMXX] Invalid Plugin (plugin "nades_api.amxx")
L 03/29/2022 - 12:54:29: Start of error session.
L 03/29/2022 - 12:54:29: Info (map "de_westwood") (file "addons/amxmodx/logs/error_20220329.log")
L 03/29/2022 - 12:54:29: [AMXX] Invalid Plugin (plugin "nades_api.amxx")
L 03/29/2022 - 12:54:34: Start of error session.
L 03/29/2022 - 12:54:34: Info (map "de_westwood") (file "addons/amxmodx/logs/error_20220329.log")
L 03/29/2022 - 12:54:34: [AMXX] Invalid Plugin (plugin "nades_api.amxx")
L 03/29/2022 - 12:54:39: Start of error session.
L 03/29/2022 - 12:54:39: Info (map "de_westwood") (file "addons/amxmodx/logs/error_20220329.log")
L 03/29/2022 - 12:54:39: [AMXX] Invalid Plugin (plugin "nades_api.amxx")
L 03/29/2022 - 12:54:44: Start of error session.
L 03/29/2022 - 12:54:44: Info (map "de_westwood") (file "addons/amxmodx/logs/error_20220329.log")
L 03/29/2022 - 12:54:44: [AMXX] Invalid Plugin (plugin "nades_api.amxx")
__________________
THE HEXAGON
74.91.123.28:27015

Last edited by THEHEXAGON; 03-29-2022 at 12:58.
THEHEXAGON 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 00:03.


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