05-20-2017, 05:03 AM
(This post was last modified: 05-20-2017, 05:03 AM by Seadragon91.)
Hm good question.
My idea that I have now would be to add the player in HOOK_PLAYER_JOINED to a global list and if the player spawns in HOOK_PLAYER_SPAWNED and is in the list then you know that he spawned due to login. If he is not in the list the player re-spawned. Run the your code and then remove the player from the list.
My idea that I have now would be to add the player in HOOK_PLAYER_JOINED to a global list and if the player spawns in HOOK_PLAYER_SPAWNED and is in the list then you know that he spawned due to login. If he is not in the list the player re-spawned. Run the your code and then remove the player from the list.