[ SOLVED ] Problem with plugins based on knife
Hello, I'm having a little trouble to make plugins using the knife. I don't know if I am running the code in the wrong way, or if I'm missing something.
Well, the problem is as follows, I use ham_itemdeploy to change the model of the knife. Add's knife in an extra item of the zombie plague, or a command to give the player, but if that happens, the knife only changes if the player model change for a gun, and then return to using the knife. Is there any way to fix this problem? |
Re: [ HELP ] Problem with plugins based on knife
Post your code
|
Re: [ HELP ] Problem with plugins based on knife
Ham_itemdeploy isn't called when you change the model, so call it manually.
|
Re: [ HELP ] Problem with plugins based on knife
Code:
#include <amxmodx> |
Re: [ HELP ] Problem with plugins based on knife
Know you you're setting the default models, right? I think so. If your thing doesn't work, try another. I mean CurWeapon.
FYI, is_user_alive() already checks if the user is connected, or its the opposite, I don't think so. Then you need only one of them. Check It https://forums.alliedmods.net/showthread.php?t=177337 |
Re: [ HELP ] Problem with plugins based on knife
is_user_alive automatically checks if the user is connected
Also, the code should work, the problem may come from within the zombie plague addons, or else you may use an outdated HLDS PHP Code:
|
Re: [ HELP ] Problem with plugins based on knife
I and my bad programming in amxx haha'
Ok, I will check what is wrong. |
Re: [ HELP ] Problem with plugins based on knife
Hello, sorry for the Spam.
Well, I made the changes in my code but still with the same problems. The model of the knife only changes when the player exchange of gun, and now another problem arose. When the player buys custom knife, and then turns into a zombie, the model of the knife does not become "in the hands" of the zombie, but continues with the plugin. Any idea? |
Re: [ HELP ] Problem with plugins based on knife
Tenta explicar melhor.
Explain better. What you mean "in the hands"? |
Re: [ HELP ] Problem with plugins based on knife
Opa, mais um Brasileiro. Então cara, o problema é o seguinte. Quando o jogador compra a faca, o modelo só muda se trocarmos para uma outra arma. O segundo problema é que, quando o jogador que tem essa faca, é infectado, as mãos do zumbi que ele se transforma fica com o modelo do extra item que estou desenvolvendo. Entendeu?
|
| All times are GMT -4. The time now is 21:03. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.