All pastes #344047 Raw Edit

Mine

public lua v1 · immutable
·published 2007-02-07 14:12 UTC
rendered paste body
addEventHandler( "onPickupHit", root, "onPickupHit")function onPickupHit ( player ) --Note 1	if (getPickupType ( source ) == 2) then		outputChatBox( "* " .. getClientName ( player ) .. " made it to the top!", root, 255, 100, 100 ) --Note 2		destroyElement( source ) --Note 3	endend			if (level > leveltop[v]) then				leveltop[v] = level			end			string = string .. getClientName ( v ) .. " (" .. level .. "/" .. leveltop[v] .. ") " .. math.floor(getPlayerHealth(v)) .. "%\n"		end	end	textItemSetText ( textItem , string ) --Note 7end