A way to make No fall damage
I searched some codes, but I cant get it.
I need a way to add fall damage to a menu (shop). |
Re: A way to make No fall damage
create a global variable that handles if players are immuned or not about fall damage, change that variable when a player buy no fall damage, or die or whatever.
PHP Code:
|
Re: A way to make No fall damage
Why is this line commented?
PHP Code:
|
Re: A way to make No fall damage
Because i don't think it is needed, you could use it and don't set the return interger though.
|
Re: A way to make No fall damage
In case returning 0 won't work I guess, you can change on the fly the damage param since if damage is 0 the function will be aborted. But returning 0 should work.
|
Re: A way to make No fall damage
Thanks, but im new at scripting, I added all those things to my code, but I dont know how to make this
Quote:
|
Re: A way to make No fall damage
It is already done, g_bNoFallDamage is the variable.
When a player buy no falldamage, set g_bNoFallDamage[id] = true Set it to false in client_putinserver, and if you need in player spawn/dies etc.. |
Re: A way to make No fall damage
I get an error when I compile.
Undefined symbol "id" on line 510 (this is the line where I have g_bNoFallDamage[id] = true) |
Re: A way to make No fall damage
Replace 'id' by the var you use for the player.
|
Re: A way to make No fall damage
PHP Code:
|
| All times are GMT -4. The time now is 04:12. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.