btw i made my first script today morning (portugal gmt)
it just shows the winner everytime you press "," xD
heres the source code
--##################ExTrEmErUn####################
--credits to yoyo2009
echo("Press '','' to load Score.lua.")
function playerscore(key)
Player0 = get_player_info(0).name
Player1 = get_player_info(1).name
player0_score = get_player_info(0).injury
player1_score = get_player_info(1).injury
if (key==string.byte(",")) then
if (player0_score > player1_score) then
echo(Player1 .. " is Winning!!")
elseif (player1_score > player0_score) then
echo(Player0 .. " is Winning!!")
else
echo("draw!")
end
end
end
add_hook ("key_down", "keypressdown", playerscore)
and download it if you wanna xD
yoyo2009 helped me to remove a bug the script had ^^