Just creating the end game screen for my gamemode, and I want to give players some feedback yada yada yada.
But I’ve come acropper and need some advice/guidance, maybe a little help with some code.
I want to show the player with the most HP left at the end of a game.
I don’t mind if you just want to help with one of these things. Anything would be great.
--I know for the player with the most HP I will need to for loop through all the players for _, pl in pairs(player.GetAll()) do --Something to get the player with the most health? end --I will need a var to store it in right? local endgamehealth = some thing calculated in the for loop above? So I can then do some thing like draw.SimpleText( " "..Players name who has the most HP.." Has survived with "..endgamehealth .."HP! " , "ZSHUDFont", w * 0.5, h * 0.6, Color( 255,255,255,255), TEXT_ALIGN_CENTER )
This is the first time in 12 months I’ve asked for helping with Lua coding. It seems that I’m in a right rut and no one I know seems to have any indication. Nor does google.
If anyone could help me out that would be greatly appreciated.
Thanks in advance,