AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   prevent from duck (https://forums.alliedmods.net/showthread.php?t=233308)

waza123a 01-12-2014 19:19

prevent from duck
 
How to prevent user from ducking ? How to handle ducks count ?

no ducks on server!

SpeeDeeR 01-12-2014 22:43

Re: prevent from duck
 
Hook Ham_Player_Duck and check if its on ground. In case its on ground, remove IN_DUCK from pev_button.
It's the simplest way to do it and close to blocking it.

waza123a 01-14-2014 20:58

Re: prevent from duck
 
thanks, job done.

Maybe you can help with this too ? http://forums.alliedmods.net/showthread.php?t=233029


All times are GMT -4. The time now is 10:12.

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