Raised This Month: $ Target: $400
 0% 

Changing FM to ReApi


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Krystek.
Member
Join Date: May 2022
Old 04-26-2023 , 13:46   Changing FM to ReApi
Reply With Quote #1

How can I change it on Reapi?

PHP Code:
register_forward(FM_UpdateClientData"fw_updateclientdata"1);

public 
fw_updateclientdata(idswcd_handle) {
    if(
user_has_pbgun(id) && cd_handle)
    {
        
set_cd(cd_handleCD_ID1);
        
get_cd(cd_handleCD_flNextAttacknextattack[id]);
        return 
FMRES_HANDLED;
    }
    return 
FMRES_IGNORED;

That's all I know for now

PHP Code:
RegisterHookChain(RG_CBasePlayer_UpdateClientData"function"1

Last edited by Krystek.; 04-26-2023 at 13:46.
Krystek. 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 00:18.


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