Forum

> > CS2D > Scripts > HUD things in map
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch HUD things in map

1 Antwort
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt HUD things in map

xSkyLordx
User Off Offline

Zitieren
Hello everybody, i cant speak english very well sorry for bad spelling..

i have no idea how can i script that hud thing..
for example HUDTxt in floor or hudimages in floor or hudtxt following players stuff like this, i want to create a roof thing when you enter house roof disappers only for me not for others this is what i want to do but im not asking for this im telling this because maybe u can understand what im really asking for thanks

see ya

OK GUYS SORRY I FIGURED IT OUT Actually i find it

1
2
3
4
5
function updatehud(id,pl)
	local x = player(pl,"x") - player(id,"x") + 320
	local y = player(pl,"y") - player(id,"y") + 200
	parse('hudtxt2 '..id..' '..pl..' "©170170250 '..player(pl,"name")..'" '..x..' '..y..' 1')
end

from show money lua
1× editiert, zuletzt 07.04.16 23:22:18

Admin/Mod Kommentar

Code tag added! Use it next time if you attempt to post codes. /user GeoB99

alt Re: HUD things in map

VADemon
User Off Offline

Zitieren
Read cs2d lua cmd image twice. Create personal images for each player and remove a player's roof image when he enters the house.
// ninja'd by topic starter?
@user xSkyLordx: it's told that updating the hud every frame will increase network usage, so be careful.
UPD: You should use cs2d cmd hudtxtmove to only move the image, it will reduce net overhead, particularly if you update the hud position every 2 or 3 frames.
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht