Forum

> > CS2D > Scripts > function hudtxt2
Forums overviewCS2D overview Scripts overviewLog in to reply

English function hudtxt2

5 replies
To the start Previous 1 Next To the start

old Re: function hudtxt2

The Gajos
BANNED Off Offline

Quote
I use this:
1
2
3
4
5
6
7
8
9
function hudtxt(id,text,x,y,align)
	local align = align or 0
	parse('hudtxt '..id..' "'..text..'" '..x..' '..y..' '..align)
end

function hudtxt2(playerid,id,text,x,y,align)
	local align = align or 0
	parse('hudtxt2 '..playerid..' '..id..' "'..text..'" '..x..' '..y..' '..align)
end
Btw. You can't set variable 'player' if there's player() function.

old Re: function hudtxt2

GeoB99
Moderator Off Offline

Quote
Why you use cs2d cmd lua? Use the cs2d cmd exec command instead to execute a script and just replace those datas from the screenshot you posted in the parse parameter (I hope you know how to do that). The alternative way you can also is to go to cs2d/sys/lua path, open server.lua file and add this line:
1
dofile("sys/lua/scriptname.lua")
That's my thought anyway, you can use the user Danilwra's advice too.
edited 1×, last 13.08.15 11:05:20 am
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview