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

[CS:GO] OnRunCmd - Force flag


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
neatek
AlliedModders Donor
Join Date: Jul 2010
Location: Russia
Old 03-08-2016 , 14:39   [CS:GO] OnRunCmd - Force flag
Reply With Quote #1

PHP Code:
public Action OnPlayerRunCmdint clientint &buttons )
{
    
int flags GetEntityFlags(client);
    
    
/*if ( buttons & IN_DUCK )
    {
        return Plugin_Continue;
    }*/

How can i add IN_DUCK flag to buttons? i want to do force duck

PHP Code:
SetEntityFlags(clientflags&~FL_DUCKING ); // not working
buttons buttons & ~IN_DUCK// not working, i can't sit down. CTRL no effect. 
__________________

Last edited by neatek; 03-08-2016 at 14:48.
neatek is offline
Miu
Veteran Member
Join Date: Nov 2013
Old 03-08-2016 , 15:07   Re: [CS:GO] OnRunCmd - Force flag
Reply With Quote #2

buttons |= IN_DUCK

Last edited by Miu; 03-08-2016 at 15:07.
Miu is offline
neatek
AlliedModders Donor
Join Date: Jul 2010
Location: Russia
Old 03-08-2016 , 15:42   Re: [CS:GO] OnRunCmd - Force flag
Reply With Quote #3

Quote:
Originally Posted by Miu View Post
buttons |= IN_DUCK
Thanks
__________________
neatek is offline
Mitchell
~lick~
Join Date: Mar 2010
Old 03-08-2016 , 16:24   Re: [CS:GO] OnRunCmd - Force flag
Reply With Quote #4

don't forget return Plugin_Changed;
Mitchell is offline
Reply



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 03:55.


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