button pushing plugin
hello,
how do you make a plugin that has a LOAD time when you push a button like you push the button K that is bound to "charge" the longer you hold the button K, the stronger the effect 1 sec => 2 dmg 5 sec => 10 dmg 10 sec => 20 dmg ... can anyone show me how to make such a plugin ? greetz ssj2goku |
try this
Code:
btw. you have to bind +charge and not charge. there are better ways eg. register/unregister_forward in cmdChargeOn/cmdChargeOff so you don't have to check every PreThink if the client is charging or not. undefine DO_DAMAGE_AT_CHARGE_OFF if you want to do the damage each second BTW. i didn't test it, but it should work |
:shock:
err :shock: can u explain the code a bit :D i don't understand a word of it except the plugin_init btw what must i modify to add other stuff then damage ? btw THANKS for the fast reply :D |
| All times are GMT -4. The time now is 16:22. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.