General > Developers Corner
Need help coding a simple file for TTT
roastchicken:
--- Quote from: JamminR on July 21, 2016, 02:42:47 AM ---You may wish to monitor Player disconnect hook too.
Death and Disconnect would cause same condition, a change in teams.
--- End quote ---
Thanks for mentioning it, I was a bit rushed for time and forgot about disconnecting.
Looking back on my post, I realize I also forgot to cover edge cases. Basically, if you have any custom features that allow players to change role mid round you're going to have issues. You'll either have to modify these addons to call an event and then hook the same check into those events or just live with the fact that it isn't perfect.
An Error Has Occurred!
array_keys(): Argument #1 ($array) must be of type array, null given
[0] Board index
Go to full version