02.01.2016, 23:36
Quote:
You have to check if user has actually logged in in case they use force spawner and dialog hider... that could be done easy with a boolean
9/10 |
I've actually considered that but decided to not do that because I'm actually trying to teach readers something. The tutorial already spoon-feeds code and I'm generally against spoon-feeding code. I can already imagine most replies to this tutorial if I didn't include any working code. Thank you for the suggestion, though.
Topic updated:
- Added an enumerator that keeps track on the LoggedIn status of the player.
- All enumerators are reset under OnPlayerConnect to avoid data corruption.
- Added TogglePlayerSpectating under OnPlayerConnect to hide the 'spawn' button.
- Spectating is disabled when the player registers or logs in.