mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2025-03-25 05:40:38 +01:00
when player join, show news only if is alive else respawn formspec is replaced by news
This commit is contained in:
parent
e206f3bf09
commit
ce9c1d19d6
@ -32,7 +32,7 @@ load_news()
|
|||||||
|
|
||||||
local function show_formspec(player, page)
|
local function show_formspec(player, page)
|
||||||
local name = player:get_player_name()
|
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 nb_pages = #news
|
||||||
local formspec = "size[12,10;]"
|
local formspec = "size[12,10;]"
|
||||||
formspec = formspec.."background[-0.22,-0.60;13,11.3;news_background.jpg]"
|
formspec = formspec.."background[-0.22,-0.60;13,11.3;news_background.jpg]"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user