local marker = createMarker(0, 0, 0)function skin(element) if source == marker and getElementType(element) == \"player\" then setPlayerSkin(element, 23) giveWeapon(element, endendaddEventHandler(\"onMarkerHit\", root, skin)