addCommandHandler ( "rank",
function ( )
for _, player in ipairs ( getElementsByType ( "player" ) ) do
local rank = exports.race:getPlayerRank ( player )
if ( rank == 1 ) then
outputChatBox ( "#ffffff1º ".. getPlayerName ( player ) .." Winner!", root, 0, 0, 0, true )
elseif ( rank == 2 ) then
outputChatBox ( "#ffffff1º ".. getPlayerName ( player ) .." Second!", root, 0, 0, 0, true )
elseif ( rank == 3 ) then
outputChatBox ( "#ffffff1º ".. getPlayerName ( player ) .." Third!", root, 0, 0, 0, true )
end
end
end
)