addCommandHandler ( "rank",
function ( player )
local rank = getElementData(player,"race rank")
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
)
Try this