Raised This Month: $ Target: $400
 0% 

Orpheu help


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 05-13-2011 , 06:42   Orpheu help
Reply With Quote #1

I was playing around with the func_tanks using orpheu.
The idea was to make like a cooldown for it.
I hooked CFunkTank::StartControl but when i use a func_tank, my game freezes.
I don't understand why this is happening, i only hooked the function.

I tried to print a msg at first but then commented it because of the crashes

Tested on map: am_gunattack_v3
PHP Code:
#include <amxmodx>
#include <orpheu>

#define VERSION     "1.0.0"


public plugin_init()
{
    
register_plugin("Func Tank"VERSION"Drekes");
    
    
OrpheuRegisterHook(OrpheuGetFunction("StartControl""CFuncTank"), "CFuncTankStartControl");
}


public 
CFuncTankStartControl(id)
{
    
// client_print(0, print_chat, "StartControl called");

Code:
{
    "name"        : "StartControl",
    "class"       : "CFuncTank",
    "library"     : "mod",
    "arguments" : 
    [
        {
            "type" : "CBasePlayer *"
        }
    ],
    "identifiers": 
    [
        {
            "os"    : "windows",
            "mod"    : "cstrike",
            "value"    : [0x74,0x07,0x5F,0x33,0xC0,0x5E,0xC2,0x04,0x00,0x8B,0x86,0x04,0x01,0x00,0x00,0x8B]
        },
        {
            "os"    : "linux",
            "mod"   : "cstrike",
            "value" : "StartControl__9CFuncTankP11CBasePlayer"
        }
    ]
}
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.

Last edited by drekes; 05-13-2011 at 07:24.
drekes is offline
Send a message via MSN to drekes
 



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 04:25.


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