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

Solved +strafe (strafe modifier)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
chickez
Junior Member
Join Date: Jun 2020
Location: Slovakia
Old 02-05-2021 , 04:16   +strafe (strafe modifier)
Reply With Quote #1

Hi, I want to check, if user is using strafe modifier.

I tried to hook +strafe / -strafe command, to detect if the player is using strafe modifier.
PHP Code:
#include <amxmodx>
#include <amxmisc>

new bool:g_bStrafe [33];

public 
plugin_init () {
    
register_clcmd "+strafe" "cmdCheckStrafeON" );
    
register_clcmd "-strafe" "cmdCheckStrafeOFF" );
}

public 
cmdCheckStrafeON id ) {
    
g_bStrafe [id] = true;
}

public 
cmdCheckStrafeOFF id ) {
    
g_bStrafe [id] = false;

This doesn't work. Too, default +strafe bind is ALT. So i tried check, if IN_ALT1
PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <fakemeta>

public plugin_init () {
    
register_forwardFM_CmdStart"fwCmdStart");
}

public 
fwCmdStart iduc_handle) {
    new 
iButton get_uc uc_handleUC_Buttons );

    if ( 
iButton IN_ALT1 )
        
client_print id print_chat "You are using ALT bind!" );

    return 
FMRES_IGNORED;

Still, doesn't work.

Any help?

Last edited by chickez; 02-08-2021 at 09:52. Reason: explanation what i'm trying to do..
chickez 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 01:02.


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