+use Button | 3Sec Boost | 20 Sec Cooldown.
How Do I set the user like , By press +use (e button) They can boost for 3 seconds & a 20 second cool down . They just have to press E once , Then they will be able to boost for 3 sec.
I've tried using & reading the method here > [TUT] Using Button Constant but still doesn't work . Its either it doesn't work or the player the moment on spawn , keep walking to the front . Also , I've already read all post / thread regarding to button , but still it didn't helped me in any . EDIT ; Can someone just help me edit this code below to the button +use to speed instead of shift key ? But I still need the 3 sec boost & 20 second cool down. PHP Code:
|
Re: +use Button | 3Sec Boost | 20 Sec Cooldown.
PHP Code:
|
Re: +use Button | 3Sec Boost | 20 Sec Cooldown.
Ok thanks , Can you help me add 20 sec delay , 3 sec boosting?
|
Re: +use Button | 3Sec Boost | 20 Sec Cooldown.
Try this:
PHP Code:
|
Re: +use Button | 3Sec Boost | 20 Sec Cooldown.
Some optimizations:
PHP Code:
|
Re: +use Button | 3Sec Boost | 20 Sec Cooldown.
Trivial.
|
Re: +use Button | 3Sec Boost | 20 Sec Cooldown.
Quote:
However, resetting the velocity in the PreThink hook was only setting the velocity that the player already had, so it was useless. Also, there were extra native calls to pev() for pev_button in PreThink. |
Re: +use Button | 3Sec Boost | 20 Sec Cooldown.
Quote:
|
Re: +use Button | 3Sec Boost | 20 Sec Cooldown.
Thanks ! Can you help me add also the client_print message for like "You can boost for %s Sec . and , You have to wait for %s cooldown .
|
| All times are GMT -4. The time now is 23:29. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.