Raised This Month: $ Target: $400
 0% 

[HOWTO][CS:S] Disable functions


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ExxorV3
New Member
Join Date: Jul 2011
Old 07-15-2011 , 13:46   [HOWTO][CS:S] Disable functions
Reply With Quote #1

Hi Guys,

is there a way to disable/block some functions like jumping or crouching?


ty
ExxorV3 is offline
Monkeys
Veteran Member
Join Date: Jan 2010
Old 07-15-2011 , 15:16   Re: [HOWTO][CS:S] Disable functions
Reply With Quote #2

Ofcourse there is.
How to block it depends on the function though. Clientside functions, however, can't.
__________________
Get a lid on that zombie,
he's never gonna be alri-i-ight.
Oooh get a lid on that zombie,
or he's gonna feed all night.
Monkeys is offline
Despirator
Senior Member
Join Date: Jun 2011
Location: Kazakhstan ->Shymkent
Old 07-16-2011 , 04:17   Re: [HOWTO][CS:S] Disable functions
Reply With Quote #3

PHP Code:
forward Action:OnPlayerRunCmd(client, &buttons, &impulseFloat:vel[3], Float:angles[3], &weapon)
{
       
buttons &= ~IN_JUMP;
       
buttons &= ~IN_DUCK;
       return 
Plugin_Changed;

Despirator is offline
ExxorV3
New Member
Join Date: Jul 2011
Old 07-16-2011 , 13:23   Re: [HOWTO][CS:S] Disable functions
Reply With Quote #4

Hey, thank you so far. Ducking is disabled completly. If a user jumps, it isn't visible for other players, but for himself it's looking like jumping the half height as usual. We also want to disable sneaking. How could this be solved?

Thank you!
ExxorV3 is offline
javalia
Senior Member
Join Date: May 2009
Location: korea, republic of
Old 07-16-2011 , 13:26   Re: [HOWTO][CS:S] Disable functions
Reply With Quote #5

set m_flJumpTime to long long time?
__________________
javalia is offline
ExxorV3
New Member
Join Date: Jul 2011
Old 07-16-2011 , 14:49   Re: [HOWTO][CS:S] Disable functions
Reply With Quote #6

Hi, I'm sorry but how to use this "m_flJumpTime"? Sneaking is now also disabled successfully.
ExxorV3 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 16:05.


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