Join hook issue
Deleted UserSo, when I tried to add HUD to player on join hook, client would not always see it
1
2
3
4
5
6
7
8
2
3
4
5
6
7
8
Player = {} addhook('join', 'JoinHook') function JoinHook(id) 	Player[id] = { 		hudimg = image('gfx/RPGx/panel.png', 320, 240, 2, id); 	} end
When I asked my friend to join, he said that he can't see the HUD. I was thinking and then I get a solution.
1
2
3
4
5
6
7
8
9
10
11
12
13
2
3
4
5
6
7
8
9
10
11
12
13
Player = {} function Join(id) 	id = tonumber(id) 	Player[id] = { 		hudimg = image('gfx/RPGx/panel.png', 320, 240, 2, id); 	} end addhook('join', 'JoinHook') function JoinHook(id) 	timer(100, "Join", id) end
Join hook will only work with timer
So I want to ask you guys, is this problem because of me or is it because CS2D bug?
Edit: Also, I tried to run the server on dedi. Problem was still occur, but this time even with me.