Forum
![>](img/i_next.png)
![>](img/icons/cs2d.png)
![>](img/i_next.png)
![>](img/i_next.png)
Drop Name
12 replies![To the start](img/i_first.png)
![Previous](img/i_prev.png)
![Next](img/i_next.png)
![To the start](img/i_last.png)
![user](img/i_friend.png)
![](img/smiles/tongue.gif)
x of image = x of player - x size of image / 2
the same for y
so its centralized to the player.
![user](img/i_friend.png)
![user](img/i_friend.png)
![user](img/i_friend.png)
@
![user](img/i_friend.png)
edited 1×, last 14.07.15 11:42:26 pm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
addhook("say", "_say") addhook("always", "_always") addhook("leave", "_leave") local names = {} function _say(id, message) if string.lower(message) == "!dropname" then names[id] = {player(id, "x") + 320, player(id, "y") + 232} return 1 end end function _leave(id) names[id] = nil end function _always() for _, id in pairs(player(0, "table")) do for id2, name in pairs(names) do parse("hudtxt2 " .. id .. " " .. id2 .. " \"" .. player(id2, "name") .. "\" " .. (name[1] - player(id, "x")) .. " " .. (name[2] - player(id, "y")) .. " 1") end end end
Another option would be to create a tileset with A-Z, then use
![cs2d lua cmd](img/i_codehelp.png)
![To the start](img/i_first.png)
![Previous](img/i_prev.png)
![Next](img/i_next.png)
![To the start](img/i_last.png)