Raised This Month: $ Target: $400
 0% 

PUBNite: BattleRoyale MOD - FINAL VERSION RELEASED!!!


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
totopizza
AlliedModders Donor
Join Date: Oct 2015
Location: Honduras
Old 04-18-2019 , 17:06   Re: PUBNITE - BattleRoyale (PUBG + FORTNITE) - [v2.2 VERSION RELEASED]
Reply With Quote #1

Quote:
Originally Posted by EFFx View Post
Does callfunc_* returns the value back to the plugin if I want to? Like, callfunc_begin("hasItem", "customitem.amxx") and then

PHP Code:
public hasItem(id)
{
     return 
bHasItem[id]

Is that native able to do that?

A example:
PHP Code:
public _hasCustomItem(idiCustonItem)
{
    
    
//static iTotalItems; iTotalItems = ArraySize(g_ArrayCustomItems);
    // or:
    // new g_iTotalItems;
    // Then, When an item is registered you do that: g_iTotalItems++;

    // Item doesn't exists
    
if(iCustonItem >= g_iTotalItems || iCustonItem 0)
        return -
1;

    new 
arrayData[DataArray];
    
ArrayGetArray(g_ArrayCustomItemsiCustonItemarrayData);

    new 
iReturn 0;
    
/*
    public pubnite_has_longjump_native(id, &ret)
    {
        ret = g_HasLongJump[id];

        return ret;
    }
    */
    //iITemFuncID = "pubnite_has_longjump(id, &ret)"

    
callfunc_begin_i(arrayData[iItemFuncID], arrayData[iItemPlugin])
    
callfunc_push_int(id);
    
callfunc_push_intrf(iReturn)
    
callfunc_end();

    return 
iReturn;


Last edited by totopizza; 04-18-2019 at 17:10.
totopizza 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 20:42.


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