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

DLLFunc_Spawn


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
meTaLiCroSS
Gaze Upon My Hat
Join Date: Feb 2009
Location: Viņa del Mar, Chile
Old 08-28-2009 , 22:38   DLLFunc_Spawn
Reply With Quote #1

In Engine is DispatchSpawn?
__________________
Quote:
Originally Posted by joropito View Post
You're right Metalicross
meTaLiCroSS is offline
AntiBots
Veteran Member
Join Date: May 2008
Location: Brazil
Old 08-28-2009 , 22:58   Re: DLLFunc_Spawn
Reply With Quote #2

Yes

Engine:
PHP Code:
static cell AMX_NATIVE_CALL DispatchSpawn(AMX *amxcell *params)
{
    
int iEnt params[1];

    
CHECK_ENTITY(iEnt);

    
edict_t *pEnt INDEXENT2(iEnt);
    
    
MDLL_Spawn(pEnt);

    return 
1;
}

#define MDLL_FUNC    gpGamedllFuncs->dllapi_table
#define MDLL_Spawn                        MDLL_FUNC->pfnSpawn 
Fakemeta:
PHP Code:
    case    DLLFunc_Spawn:    // int )                ( edict_t *pent );
        
cRet MF_GetAmxAddr(amx,params[2]);
        
index=cRet[0];
        
CHECK_ENTITY(index);
        return 
gpGamedllFuncs->dllapi_table->pfnSpawn(INDEXENT2(index)); 
__________________

Last edited by AntiBots; 08-28-2009 at 23:02.
AntiBots is offline
Send a message via ICQ to AntiBots Send a message via MSN to AntiBots Send a message via Skype™ to AntiBots
meTaLiCroSS
Gaze Upon My Hat
Join Date: Feb 2009
Location: Viņa del Mar, Chile
Old 08-28-2009 , 23:05   Re: DLLFunc_Spawn
Reply With Quote #3

Quote:
Originally Posted by AntiBots View Post
Yes

Engine:
PHP Code:
static cell AMX_NATIVE_CALL DispatchSpawn(AMX *amxcell *params)
{
    
int iEnt params[1];

    
CHECK_ENTITY(iEnt);

    
edict_t *pEnt INDEXENT2(iEnt);
    
    
MDLL_Spawn(pEnt);

    return 
1;
}

#define MDLL_FUNC    gpGamedllFuncs->dllapi_table
#define MDLL_Spawn                        MDLL_FUNC->pfnSpawn 
Fakemeta:
PHP Code:
    case    DLLFunc_Spawn:    // int )                ( edict_t *pent );
        
cRet MF_GetAmxAddr(amx,params[2]);
        
index=cRet[0];
        
CHECK_ENTITY(index);
        return 
gpGamedllFuncs->dllapi_table->pfnSpawn(INDEXENT2(index)); 
__________________
Quote:
Originally Posted by joropito View Post
You're right Metalicross
meTaLiCroSS is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 08-29-2009 , 05:23   Re: DLLFunc_Spawn
Reply With Quote #4

Why don't you search yourself ? It taks 5 seconds to search on the wiki or less if you look at the .inc directly.
__________________
Arkshine is offline
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 02:08.


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