Raised This Month: $ Target: $400
 0% 

Solved Multiforward help


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
38e4m
New Member
Join Date: Apr 2022
Old 04-15-2022 , 05:44   Multiforward help
Reply With Quote #1

PHP Code:
new fwret

public plugin_init()
{
    
register_forward(FM_PlayerPreThink"Player_Movement")

    
fw CreateMultiForward("Movement"ET_CONTINUEFP_CELLFP_CELLFP_CELL)
}

public 
Player_Movement(index)
{
    new 
flags pev(indexpev_flags)
    new 
button pev(indexpev_button)
    new 
oldbutton pev(indexpev_oldbuttons)

    
ExecuteForward(fwretindexflagsbuttonoldbutton);

then

PHP Code:

forward Movement
(indexflagsbuttonoldbutton)

public 
Movement(indexflagsbuttonoldbutton)
{
    if(
flags FL_ONGROUND)
    {

    }

    if(
button IN_JUMP)
    {
    
    }

    if(
oldbutton IN_JUMP)
    {
        
    }

Solved

PHP Code:
ExecuteForward(fwretindexflagsbuttonoldbutton); 
- >

PHP Code:
if(!ExecuteForward(fwretindexflagsbuttonoldbutton)
{



Last edited by 38e4m; 04-16-2022 at 20:19.
38e4m 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 21:19.


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