Bomb Planted called twice
Everything works except that when I plant the bomb it seems to call the function 2 times. My chat message appears twice and I get 2 bonus kills instead of 1. What am I missing?
PHP Code:
PHP Code:
|
Re: Bomb Planted called twice
Either you use csx forward : http://www.amxmodx.org/funcwiki.php?go=func&id=900
Either you name your callback a different way. Also, use get_user_frags(id) and set_user_frags(id) (<- last one from fun module) natives . |
Re: Bomb Planted called twice
Thanks Connor, it's working great now.
|
Re: Bomb Planted called twice
I noticed another issue with my edited code above. I was testing with bots and noticed that when the bot planted the bomb I was able to see the "Bonus" chat message. What needs to be changed to make the message only visible to the planter.
EDIT: I just tested with a human player and have the same issue. Using this code along with Ven's stock solved the problem. PHP Code:
|
| All times are GMT -4. The time now is 03:40. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.