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

trying to resolve bot defuse bug


Post New Thread Reply   
 
Thread Tools Display Modes
siprem10
New Member
Join Date: Dec 2018
Old 07-07-2019 , 16:46   Re: trying to resolve bot defuse bug
Reply With Quote #11

Quote:
Originally Posted by LukeyB View Post
Resolved with Orpheu...

PHP Code:
#include <amxmodx>
#include <cstrike>
#include <engine>
#include <fakemeta>
#include <orpheu>
#include <orpheu_advanced>
#include <orpheu_memory>
public plugin_init()
{        
    
OrpheuRegisterHook(OrpheuGetFunction("PM_Duck"),"OnPM_Duck")
}
public 
OrpheuHookReturn:OnPM_Duck()
{
    new 
OrpheuStruct:ppmove get_ppmove()
    new 
id OrpheuGetStructMember(ppmove,"player_index") + 1
    
if(is_user_alive(id) && is_user_bot(id) && pev(idpev_button) & IN_USE)
    {
        return 
OrpheuSupercede
    
}
    return 
OrpheuIgnored
}
OrpheuStruct:get_ppmove()
{        
    return 
OrpheuGetStructFromAddress(OrpheuStructPlayerMove,OrpheuMemoryGet("ppmove"))

Work!, but is possible without ORPHEU?

Last edited by siprem10; 12-17-2019 at 15:42.
siprem10 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 17:30.


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