25.01.2015, 14:29
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.
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.