Unstuck help
Hello everyone.
Can someone help me with this. I have a plugin which allow same team players to pass trough each other so in this way avoid blocking. They can pass trough each other only if press key E and is hold. Ok now i have into another plugin Unstuck option! what i am trying to do is to block execute the Unstuck code if key E is pressed ... i try with this but does not work! Code:
I don't understand why the code after // Check if key E is pressed ..... is still executed? Thank you. |
Re: Unstuck help
I'm not very experienced with this kind of stuff, but what if you just place that check inside this check
PHP Code:
i think it should look something like this, i might be wrong though. PHP Code:
PHP Code:
|
Re: Unstuck help
Quote:
I test it, and something is change. It won't spawn (unstuck) me now! instead it will spawn (unstuck) the other player while I'm inside it and holding the key E. P.S I think the problem is that the task is created also for other player and it will check if is blocked! but as I'm stay through him while i press E the task it detects the key E is hold only for me! so other will think is STUCK! Code:
Anyone have a solution? Thank you https://i.ibb.co/gwGj3hG/Untitled.jpg |
Re: Unstuck help
Can you post the full code?
|
Re: Unstuck help
Quote:
Code:
|
Re: Unstuck help
1) Why are you repeating the task?
2) PHP Code:
PHP Code:
|
Re: Unstuck help
Quote:
I repeat the task cause each 5 seconds will check if user is stuck. It won't help me that code! what you gave me. Cause as i say already task will verify every 5 seconds each user that are alive. If myself I'm stay inside through a player and hold key E it will be applied only for me! so the other player who i am inside of while i press E it will think is stuck cause only me I'm holding key E. I need some how a code that will do similar like this: if (player1 hold key E and inside player2 || player2 hold key E and inside player1) return I don't know how to explain better, hope you got the point. |
| All times are GMT -4. The time now is 14:09. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.