1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-09-27 23:10:33 +02:00

when player join, show news only if is alive else respawn formspec is replaced by news

This commit is contained in:
crabman77 2016-01-09 20:58:52 +01:00
parent e206f3bf09
commit ce9c1d19d6

View File

@ -32,7 +32,7 @@ load_news()
local function show_formspec(player, page)
local name = player:get_player_name()
if not name then return end
if not name or (player:get_hp() <= 0) then return end
local nb_pages = #news
local formspec = "size[12,10;]"
formspec = formspec.."background[-0.22,-0.60;13,11.3;news_background.jpg]"