26.12.2017, 00:52
I have a gamemode and a filterscript for account system. In my account system, it has a callback named OnPlayerLoggedIn. This callback will called if a player has been logged in successfully. Then, I want create this filterscript that can be integrated with callbacks and functions. This is what I want:
- Player connected to the server
- Player ask for password
- If matched, player logged in and callback OnPlayerLoggedIn called from account system.
- The loaded filterscripts and gamemode also called after the player logged in.
What is the best approach for my case? I've think about ALS, y_hooks, and y_als. But I've seen it on YSI Wikia and it has examples just for include. Maybe I didn't understand at all how those works.
- Player connected to the server
- Player ask for password
- If matched, player logged in and callback OnPlayerLoggedIn called from account system.
- The loaded filterscripts and gamemode also called after the player logged in.
What is the best approach for my case? I've think about ALS, y_hooks, and y_als. But I've seen it on YSI Wikia and it has examples just for include. Maybe I didn't understand at all how those works.