AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Make bots always run (https://forums.alliedmods.net/showthread.php?t=319199)

dominannto 10-19-2019 03:29

Make bots always run
 
I want to make bots always run. Bots walk when they are chasing people from behind with knife.

PHP Code:

#include <amxmodx>
#include <fakemeta>




public plugin_init()
{
    
register_plugin("bot_walk""0.1""UD")
    
register_forwardFM_CmdStart "fm_CmdStart" );

}

public 
fm_CmdStart(id,Handle)
{
    new 
ButtonsButtons get_uc(Handle,UC_Buttons);
    if(
is_user_bot(id))
    {
        
Buttons &= ~IN_RUN;
        
set_ucHandle UC_Buttons Buttons );
        return 
FMRES_SUPERCEDE;
    }
    return 
FMRES_HANDLED




All times are GMT -4. The time now is 02:59.

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