Server lag? +REP
#10

Also that RANK stuff, where you set the new text for your textdraw doesn't belong in a timer as well.

Create a small function that you can call whenever the kills increase.
And add that code there as well, to update your textdraw.

Whenever you detect a kill, just call this function once and it should:
- add 1 to your kills variable
- update the textdraw

It has no use to keep updating a textdraw with the same text over and over again when nobody is killing someone.

Doing this under OnPlayerUpdate will update that textdraw 30 times per second.
I don't think anyone can kill 30 people per second, so it doesn't belong there in the first place.
Reply


Messages In This Thread
Server lag? +REP - by Youssef221 - 25.01.2015, 09:06
Re: Server lag? +REP - by CrazyChoco - 25.01.2015, 09:10
Re: Server lag? +REP - by Youssef221 - 25.01.2015, 09:12
Re: Server lag? +REP - by HydraHumza - 25.01.2015, 09:18
Re: Server lag? +REP - by Ryz - 25.01.2015, 09:32
Re: Server lag? +REP - by Youssef221 - 25.01.2015, 09:39
Re: Server lag? +REP - by arlindi - 25.01.2015, 09:58
Re: Server lag? +REP - by Youssef221 - 25.01.2015, 10:45
Re: Server lag? +REP - by HydraHumza - 25.01.2015, 13:01
Re: Server lag? +REP - by PowerPC603 - 25.01.2015, 14:29

Forum Jump:


Users browsing this thread: 2 Guest(s)