100酱吧 关注:282贴子:2,512
  • 1回复贴,共1

【Addon】死亡不掉落[CPP源码]

取消只看楼主收藏回复

好了不多说,此吧恢复正常


IP属地:浙江来自Android客户端1楼2016-02-02 23:41回复
    #include <jni.h>
    #include <dlfcn.h>
    #include <stdlib.h>
    #include <string>
    #include <mcpe/entity/player/Player.h>
    #include <MsHook.h>
    static void (*_Player_die)(Player *,EntityDamageSource const&);
    static void Player_die(Player *p,EntityDamageSource const&eds){
    //_Player_die(NULL,eds);
    }
    JNIEXPORT jint JNI_OnLoad(JavaVM* vm, void* reserved) {
    MSHookFunction((void *)&Player::die,(void *)Player_die,(void **)&_Player_die);
    return JNI_VERSION_1_2;
    }


    IP属地:浙江来自Android客户端2楼2016-02-02 23:42
    收起回复