Forum

> > CS2D > Scripts > Drop Name
Forums overviewCS2D overview Scripts overviewLog in to reply

English Drop Name

12 replies
To the start Previous 1 Next To the start

old Drop Name

Jedediastwo
User Off Offline

Quote
I need a script when player say !dropname his name appears on the floor

old Re: Drop Name

KimKart
Idiot Off Offline

Quote
Don't do it! The lags are too strong! They're taking over... aaa~

old Re: Drop Name

Skripter5000
User Off Offline

Quote
On join, let the permissive people get a image/sprite generated, when it does !dropname, a n ew image/sprite is generated there. Maybe
x of image = x of player - x size of image / 2
the same for y
so its centralized to the player.

old Re: Drop Name

Kirito2K
User Off Offline

Quote
@user Jedediastwo: final admin script have something like this in old version of it (i think so) , if you want that u can ask the maker of it..

old Re: Drop Name

Apache uwu
User Off Offline

Quote
Here's an example using hudtxt2:

1
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 image.
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview