Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Add extra text on name
#1
Hi.

First of all sorry for my bad english Sad

Well, i need add at the left of the Name (text over the player) extra text, i need a code to load a textbox call text1, and the content of this textox put.

example:

text1.text is [Away]

final result: Player [Away

I try with the
Code:
TextX = GetPlayerX(Index) * PIC_X + Player(Index).XOffset + (PIC_X \ 2) - ((frmMirage.txt1.text)) / 3) * 8)

But not works, i need the code of this, VERY VERY THANKS.
Reply
#2
Well first of all, doing this will not show this text to other players unless you send it to the server and from the server sends it to all the other clients. But if you only want it to show for yourself you need to add text1.text before GetPlayerName(Index), like this:
text1.text & " . " & GetPlayerName(Index)

You can find GetPlayerName(Index) in the Drawtext below your TextX line.
Reply
#3
The simple way, would be to send a packet to the server. Specify a number, 0 or 1. (0 for when they remove it, 1 for when they add it)

Then, if the number is 0, send a packet telling the client to remove it. If it's 1, send a packet WITH the data they wish to add to it. Store that data in a variable for the player, but just make it a client only variable.

Then, in the bltplayername sub (or w/e it's called..) check that variable, if it's different than "", then blit the name + the message. So, the variable in the sub that stores the players name to blit, just do..

namevar = namevar & " " & addonvar

Or something to that effect. I don't program anymore, but that would be the way I'd do it, were I to add something like this.
Reply
#4
DFA Wrote:thought u were doin merri?

I was. The community is full of ungrateful little asshole retards, so I quit.

Anthony is programming it now.
Reply
#5
DFA Wrote:why what happened?

anthony, the guy from BC?

Anthony, from Canada. Comes here all the time. Lol.

They just pissed me off. I refuse to work on something that I find would be a reward, for a bunch of little fucktards.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)