shield touch and PLUGIN_HANDLE
Hello, me again, I found that PLUGIN_CONTINUE allows further command execution and PLUGIN_HANDLED halts it. what i'm trying to do here is when player touch the shield(i want to try using shield as example for myself because after reading a few topics, I found out that shield is not registered as other items/weapons so it's more difficult), find if the player can touch it, if can,then allow pickup if no, don't let it pickup. however, no matter if player has rights to pick up shield or no, walking over shield does nothing as if player didn't have rights(with the excerpt of code i posted bellow) i tried moving things around but nothing works. if i remove all PLUGIN_HANDLED 's ,it lets pickup shield. it also doesn't print any of the messages i wrote to check if it's executed correctly. i also tried 0 instead of id in client_print thinking that id is not passed, but doesn't work either. am i using wrong method?
PHP Code:
|
| All times are GMT -4. The time now is 22:12. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.