22.02.2019, 15:16
Quote:
Edit:
You could additionally add a timer which checks for players in a Hydra, that are not allowed to be in there and slap them out. Lag or desync might let them enter the Hydra in any case. Respawning the Hydra would be efficient in this case too. |
Quote:
Because it is pointless to use a counter when attempting to enter, when the player is already inside the Hydra on first try due to desync or because he used a hack to enter it, preventing the counter to count up.
Additionally, for those who can not enter due to the code above, there is no need to kick them after 3 or whatever tries, since they can't enter anyway. I, additionally, do not see the point of using gettime here. And finally, I used the posted code in combination with a timer on my server for over 5 years and it worked perfectly. Since Alex was playing on it for quite some time, I'm sure he can confirm this. So: Just don't. |