Quote:
|
Originally Posted by jim_yang
seems that when cl_lw 0 it will fire another message SVC_WEAPONANIM
so method 1 will get that error because it's still in hooking msg curweapon
|
Right, thanks for the explanation.
I still don't know what's up with method #2, take a look at this console dump:
Code:
] amx_forceknife 2
] cl_lw 0
] weapon_usp
[TEST] CurWeapon Message - player 1 - weapon weapon_usp
[TEST] CurWeapon Event - player 1 - weapon weapon_usp
[TEST] Forcing weapon change...
[TEST] CurWeapon Event - player 1 - weapon weapon_usp
[TEST] Forcing weapon change...
I attempted to change my weapon only once, still a second CurWeapon Event was called out of nowhere. Is that a bug in AMXX's event system or what? I didn't have any other plugins running besides the test script...
Quote:
|
Originally Posted by jim_yang
I tryied this to remove it
Code:
server_print("[TEST] Forcing weapon change...")
set_msg_block(35, BLOCK_ONCE)
engclient_cmd(id, "weapon_knife")
|
Alright, tested that...
For Method #1 I'm now getting kicked out with SVC_BAD when I switch weapons...
For method #2 it's still triggering an additional CurWeapon event out of nowhere.
__________________