General > Developers Corner
Inform Users On Name Change (Like TF2)
Decicus:
--- Quote from: Valgoid on July 05, 2014, 05:29:35 PM ---I did, its still priniting twice, do you think its beacuse im running it in single player?
--- End quote ---
Wait, you removed it and it was still printing? It wouldn't be my script if that's the case.
--- Quote from: Zmaster on July 05, 2014, 05:35:01 PM ---Sometimes it would print it more than twice on my server
Usually two, but sometimes three or four
--- End quote ---
--- Quote from: Valgoid on July 05, 2014, 05:38:11 PM ---Yea the script is wrong.
--- End quote ---
I'm going to test this on my own server when I get home.
Decicus:
I tested it a few times, in both sandbox and TTT. It only printed once per namechange. I put screenshots below, where I changed my name twice per screenshot. So it could be a different script causing it, or something like that.
Sandbox:
TTT:
Cobalt:
http://puu.sh/9ZXgI/6387472fed.lua
I had that lying around, there is a function at the bottom that will fix the hook calling repeatedly.
LuaTenshi:
You can also use a timer.Create to stop the hook from spamming. http://wiki.garrysmod.com/page/timer/Create
Valgoid:
Still spams, and also when people join it says unconnected changed their name to : "then their name"
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version