[CS 1.6] How to detect if a player is crouched?
The title says it all, how do i detect if a player is crouched (with and without holding the duck button, player will stay ducked if he is in a small area).
|
Re: [CS 1.6] How to detect if a player is crouched?
|
Re: [CS 1.6] How to detect if a player is crouched?
I don`t know how to use that
|
Re: [CS 1.6] How to detect if a player is crouched?
Quote:
First you have to include hamsandwich to use it like this PHP Code:
PHP Code:
Ham_Player_Duck - This is a event which triggers the ham to execute "player" - Its the entity or in simple words object to which the above event is hooked to. "player_duck" - Its basically the name of function you create to execute the code before or while or after the the event you specified. You can change this one to anything as long as the function you are creating has the same name. The last parameter is for the pre/post 2 - before the event 0 - while the event is active or in your case while the player is crouching 1 - after the event Lastly you have to make a function to execute the code like this PHP Code:
|
Re: [CS 1.6] How to detect if a player is crouched?
Quote:
|
Re: [CS 1.6] How to detect if a player is crouched?
Quote:
|
Re: [CS 1.6] How to detect if a player is crouched?
PHP Code:
|
Re: [CS 1.6] How to detect if a player is crouched?
First of all, you should tell us what you`re trying to achieve
|
Re: [CS 1.6] How to detect if a player is crouched?
Just trying to give an item to player if he is crouching, if he isn`t return a message. It`s simple.
|
Re: [CS 1.6] How to detect if a player is crouched?
i guess you can do it with orpheu
PHP Code:
source: https://forums.alliedmods.net/showth...7217?p=1387217 |
All times are GMT -4. The time now is 00:31. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.