Blocking input while dead
Hello everyone, I'm once again coding for The Specialists, and in The Specialists, once a player dies he must press +attack to respawn.
Blocking IN_ATTACK works perfectly when the player is alive, but does not work at all when he is dead. Code:
Strange, anyone have a solution to preventing someone from spawning? |
Re: Blocking input while dead
Bump, well is it possible to hook a respawn message and block it? How do you block messages?
|
Re: Blocking input while dead
you mean?
PHP Code:
|
Re: Blocking input while dead
No, that's not what he means.
Des12, debug. First start simple and give it an echo so you know the global variables that you claim are always above 0 are actually above 0, for example. Code:
And take out PLUGIN_HANDLED - you don't need that there. I would bet you don't get any echo, which will tell you that the error lies before the button setting, in your variable testing code. |
Re: Blocking input while dead
This works in Counter-Strike.
You need AMX Mod X 1.80 or Ham Sandwich installed. Code:
#include <amxmodx> |
Re: Blocking input while dead
It just depends whether or not TS sends a Ham_Spawn on player spawn or does it some other way.
Only one way to find out ... |
| All times are GMT -4. The time now is 16:10. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.