Why i never see this hud in-game?
this is my code:
[LUA]
function Rounds()
if (team.NumPlayers(1) >= 1) and (team.NumPlayers(2) >= 1) then
draw.WordBox( 10, ScrW() / 2 - 100, ScrH() - 63, "Round has been started, place your people, search and shoot the other team his people!", "Default", Color(10,40,75,100), Color(255,255,255,255) )
else
draw.WordBox( 10, ScrW() / 2 - 100, ScrH() - 63, "Waiting for more players.", "Default", Color(10,40,75,100), Color(255,255,255,255) )
end
end
hook.Add("HUDPaint","RoundSystem",Rounds)
[/LUA]
Thanks.
Your code works fine for me.
[img]http://upl.leiftiger.se/img/NDM2/[/img]
i use the code in a gamemode,
in the file init.lua,
could that be the problem?
Init.lua only runs on the server, put it in cl_init.lua.
THANKS! =D
Sorry, you need to Log In to post a reply to this thread.