09.10.2011, 09:42
Needs a streamer integrated in this, since 2024 textdraws isn't enough sometimes.
Special thanks to: - Gamer_Z |
TD_Flash(Text:TextdrawID,Interval,Times);
TD_Move(Text:TextdrawID,Float:X,Float:Y,Float:Speed);
TD_Stop(Text:TextdrawID);
TD_Fade(Text:TextdrawID,bool:InOut,Float:Speed);
nice
Can you add a "playerid" param to all functions ? For example if in TD_SetString parametr playerid will be set to another value then -1 the "textstring" will be only displayed to player with id in param "playerid" |
I'm not convinced that's always a good thing, especially as you show every TD for every player after every update. If I decide to change the colour, background, and position all at once that will end up showing the TD three times to every player in quick succession.
For reference, y_td sets a timer after any modification unless the timer is already set. The timer is fired in the next server clock tick so that it comes after all modifications done in one chunk, but is short enough that you don't notice. The timer is what sends the modified data to the players, so that a group of modifications is only sent once. There also used to be an optional "update" parameter on every function which if "false" would not update at all for existing players. This used to manually specify which modifications should not send data as you weren't done yet. I removed it when I added the timer to automate the system, but it occurs to me now that leaving it might be good if they don't want a player to see the new data. Also, why are some functions in bold? Edit: Why do you hate spaces (and character constants)? |
I didn't even notice the date! You should update this if you think you can improve it - would be good to see.
I'm not convinced it's "obvious" that y_td is better though (it might be, but there's little evidence at this point). And I like your use of "thrice". |