Raised This Month: $ Target: $400
 0% 

Question about Natives


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Whitez
Member
Join Date: Apr 2016
Location: London, UK
Old 05-29-2016 , 13:27   Question about Natives
Reply With Quote #1

Is it possible to create a forward and a native with more params?
Will something like this work?

PHP Code:
public plugin_init() 
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
g_Forwards[FW_USER_INFECT_PRE] = CreateMultiForward("zp_fw_core_infect_pre"ET_CONTINUEFP_CELLFP_CELLFP_CELL)
    
g_Forwards[FW_USER_INFECT] = CreateMultiForward("zp_fw_core_infect"ET_IGNOREFP_CELLFP_CELL)
    
g_Forwards[FW_USER_INFECT_POST] = CreateMultiForward("zp_fw_core_infect_post"ET_IGNOREFP_CELLFP_CELLFP_CELL)
}
InfectPlayer(idattacker 0value 0)
{

}


public 
native_core_infect(plugin_idnum_paramsparam2)
{


Last edited by Whitez; 05-29-2016 at 13:30.
Whitez is offline
 



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 18:36.


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